Go to Post FIRST robots are not six week projects. They are never ending projects where the requirements are changed on an annual basis. - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-11-2008, 21:16
blackdeath's Avatar
blackdeath blackdeath is offline
Registered User
AKA: Shawn
FRC #2506 (Saber Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Franklin, WI
Posts: 6
blackdeath is an unknown quantity at this point
C/C++ Compilers Available?

Which C/C++ compilers can we use with the new control systems? We are not getting very far with LabView.
  #2   Spotlight this post!  
Unread 10-11-2008, 23:39
rogerlsmith's Avatar
rogerlsmith rogerlsmith is offline
Software Engineer
AKA: Roger Smith
FRC #3357 (COMETS)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Grand Rapids, MI
Posts: 214
rogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to behold
Re: C/C++ Compilers Available?

From what I've read, we'll be able to use the Wind River Workbench, which is a modified version of eclipse (I like eclipse a lot). You should be able to download a trial version, and I believe a licensed version will be in the KOP (I might be wrong).

There is also going to be a new version of WPILib that we can use with the new hardware. So far, this looks good to me.
__________________
Roger Smith
Mentor - FRC Team 3357
COMETS - Creating Outstanding Minds, Embracing Technology & Science
---------------------------------------------------------------------------------------

Share FIRST videos, photos and experiences at FIRSTObjective.org
  #3   Spotlight this post!  
Unread 10-11-2008, 23:55
blackdeath's Avatar
blackdeath blackdeath is offline
Registered User
AKA: Shawn
FRC #2506 (Saber Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Franklin, WI
Posts: 6
blackdeath is an unknown quantity at this point
Re: C/C++ Compilers Available?

Will windriver work with windows? it keeps talking about linux.
  #4   Spotlight this post!  
Unread 11-11-2008, 00:04
rogerlsmith's Avatar
rogerlsmith rogerlsmith is offline
Software Engineer
AKA: Roger Smith
FRC #3357 (COMETS)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Grand Rapids, MI
Posts: 214
rogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to behold
Re: C/C++ Compilers Available?

Yep, Wind River Workbench works with Windows. I've been testing it for a while on Vista. No problems.
__________________
Roger Smith
Mentor - FRC Team 3357
COMETS - Creating Outstanding Minds, Embracing Technology & Science
---------------------------------------------------------------------------------------

Share FIRST videos, photos and experiences at FIRSTObjective.org
  #5   Spotlight this post!  
Unread 11-11-2008, 01:01
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: C/C++ Compilers Available?

Quote:
Originally Posted by blackdeath View Post
Which C/C++ compilers can we use with the new control systems? We are not getting very far with LabView.
The compiler that it uses is based off of GCC. It used Eclipse as the IDE.

If you want to brush up on your C/C++ before you get the new system, you can download versions of GCC and Eclipse that will compile C/C++ programs so they will run on your computer.
  #6   Spotlight this post!  
Unread 13-11-2008, 09:30
Goldfire's Avatar
Goldfire Goldfire is offline
Programming Teacher
AKA: Richard Eisenberg
FRC #1884 (The Griffins)
Team Role: Teacher
 
Join Date: Oct 2008
Rookie Year: 2008
Location: London, UK
Posts: 4
Goldfire is a jewel in the roughGoldfire is a jewel in the roughGoldfire is a jewel in the rough
Re: C/C++ Compilers Available?

Having played around with Wind River a bit, it doesn't seem terribly user-friendly just for getting ramped up with C/C++. For Windows XP/Vista, I would recommend Microsoft Visual C++ Express. I'm no fan of Microsoft, in general, but I find this tool easier to use than Eclipse/Cygwin/gcc/MinGW or some combination thereof. Go to www.microsoft.com/express for free download.
  #7   Spotlight this post!  
Unread 14-11-2008, 17:55
rogerlsmith's Avatar
rogerlsmith rogerlsmith is offline
Software Engineer
AKA: Roger Smith
FRC #3357 (COMETS)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Grand Rapids, MI
Posts: 214
rogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to beholdrogerlsmith is a splendid one to behold
Re: C/C++ Compilers Available?

I've been a long time user of Microsoft products for software development and I just started using Eclipse a year or so ago. It takes a little "getting used to", but I've grown to like it.

The only issue using Microsoft tools for FIRST is getting it to compile a binary that will run on the hardware.

Wind River Work Bench comes with the necessary pieces to compile to the NI cRIO.
__________________
Roger Smith
Mentor - FRC Team 3357
COMETS - Creating Outstanding Minds, Embracing Technology & Science
---------------------------------------------------------------------------------------

Share FIRST videos, photos and experiences at FIRSTObjective.org
  #8   Spotlight this post!  
Unread 15-11-2008, 20:52
MarkO's Avatar
MarkO MarkO is offline
Registered User
AKA: Mark D. Overholser
FRC #0957 (WATSON Robotics team)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Albany, Oregon, USA
Posts: 17
MarkO is an unknown quantity at this point
Re: C/C++ Compilers Available?

I think this is the Tool Chain that will work the new FRC cRIO.


Developing Shared Libraries for the cRIO-901x and Other VxWorks Targets

If anyone has better information, please post it..
  #9   Spotlight this post!  
Unread 17-11-2008, 18:06
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: C/C++ Compilers Available?

Roger is correct. The Wind River Workbench is being used in combination with a new object-oriented version of WPILib. In the new system, you declare objects for inputs and outputs (there are specialized classes for different sensors, motors, joysticks, etc.) and manage these devices through their objects. There are initialization, autonomous, and teleoperated functions to place your code in which are automatically called by WPILib at the appropriate time (teams that used WPILib last year will find this familiar).

If you're a bit rusty in C++ and OOP, I would suggest playing around in Microsoft Visual C++ Express Edition. While you can't use it to compile code for the robot, it is useful as a learning and teaching tool for C++. Tutorials such as www.learncpp.com are also useful.
__________________
  #10   Spotlight this post!  
Unread 17-11-2008, 22:12
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Re: C/C++ Compilers Available?

Anyone know of a good open source compiler that will work? I don't have enough disk space for Visual C++ and from what I can tell WindRiver is not free. Will bloodshead or something similar work since it is gcc based?
  #11   Spotlight this post!  
Unread 17-11-2008, 22:35
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: C/C++ Compilers Available?

Quote:
Originally Posted by dpeterson3 View Post
Anyone know of a good open source compiler that will work? I don't have enough disk space for Visual C++ and from what I can tell WindRiver is not free. Will bloodshead or something similar work since it is gcc based?
A quick google search yielded this.

Eclipse C++ development tutorial

You can use Eclipse and gcc together for free, and it will be very similar to what WindRiver is. My personal preference is to use my favorite text editor and then just use GCC directly with makefiles, but I doubt that is what you should start out doing.

Disclaimer: I haven't tested this tutorial, but it looks about right. There are probably other tutorials out there too, but this was the first one I found that looked good.
  #12   Spotlight this post!  
Unread 18-11-2008, 23:01
rfrank's Avatar
rfrank rfrank is offline
Programmer
AKA: Russell Frank
FRC #0041 (RoboWarriors)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2007
Location: Somerset, New Jersey
Posts: 19
rfrank will become famous soon enough
Re: C/C++ Compilers Available?

@dpeterson3: Bloodshed Software's Dev-C++ will work great for just learning C++ if that's what you want to do. It might be possible to compile code for the cRIO with Dev-C++, but it would take a bit of work to get everything set up correctly (changing gcc's target, linking with the vxworks OS libs, etc).

Dev-C++ comes with an IDE and the mingw gcc compiler. You can download it here -- http://www.bloodshed.net/dev/devcpp.html
  #13   Spotlight this post!  
Unread 19-11-2008, 09:13
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: C/C++ Compilers Available?

I'd recommend getting Eclipse and gcc and playing with that until your team gets its controller. Once you get the controller, you will get Wind River's development environment. I think they said that you get 25 licenses. I'd use Wind Rivers environment over any other. Eclipse is pretty good and well worth learning but the main reason is that it comes with all of the stuff you need to build with VxWorks built in. VxWorks is the underlying operating system for the cRio and you'll probably have to use that.

If you don't have enough disk to install Visual C++, than you should get another disk. They're very cheap and you could probably pay for it by collecting the lunch money of your team.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual C18 Compilers and MPLAB? RyanN Programming 8 19-06-2008 08:46
A Question on Compilers bizarospooky Programming 3 08-01-2008 23:45
Update #2 is available ... Raul Rules/Strategy 1 16-01-2004 23:15
PortSnoop v 1.3 Available archiver 2000 0 23-06-2002 22:57


All times are GMT -5. The time now is 19:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi