View Single Post
  #2   Spotlight this post!  
Unread 22-12-2008, 08:46
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: WindRiver C++ Specific Keywords

Quote:
Originally Posted by kyungjin View Post
I'm planning on using the WindRiver IDE to program our FIRST bot using C++ and was wondering if there were some good resources regarding some of the specifics of the WR IDE...

I've looked at the WPI C/C++ Guide but it's not as helpful as I want it to be (namely because it's not finished). To some of the other teams out there that are familiar with the system, I'd like to ask if someone can compile a list of keywords or functions and a brief description of what it does... (for example: motor[portx] -> drives a certain motor a certain speed (RobotC example... but you get the idea...)) something that I can use as reference as I try to figure out this new IDE...

Also, any other specific information regarding the IDE or any helpful resources you may have come across is appreciated as well.

Thanks in advance,
- Dan
If you're familiar with C++, here is your bible(not sure if you've seen this yet)
http://users.wpi.edu/~bamiller/WPIRoboticsLibrary/
its a listing of all of the classes in the library and what they do

if you're not familiar with C++, its a bit different than it was last year in C.
instead of a variable for everything, there's an object instead.
so for your example, you'd construct an object at the top of your code (depending on how your code is laid out and if your using the iterative or simple robot class):
Code:
Jaguar* motor = new Jaguar(CHANNEL);
and then you can control the functions of that motor from there
Code:
motor->set(1.0);
If you need help with anything specific, send me a message, i'll gladly help you out.
I'd study up on C++ Objects if you're not familiar with them.
__________________
Reply With Quote