Go to Post ...if most of the money comes from sponsors, I have a bit of a problem letting them [the students] charge off a cliff with it. - TimCraig [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-12-2008, 07:13
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
WindRiver C++ Specific Keywords

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
Reply With Quote
  #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
  #3   Spotlight this post!  
Unread 22-12-2008, 14:33
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: WindRiver C++ Specific Keywords

Thanks for the reply. The link you mentioned was exactly what I was looking for.

I'm kinda browsing around the site looking at some of the code though... and a lot of the things here is really confusing. I mean, I have a good foundation knowledge in C/C++ (although I'll admit, OOP is not my forte... yet) but I guess there's a lot of robot specific words that I don't understand (i.e. PWM, Victor, Jaguar, Watchdog, etc.). I guess this is cause this is my first (and last) year doing FIRST robotics.

I know I didn't mention this last time... But could you also link up or post some example code entailing some of the more commonly used functions, objects, etc. A few examples, and hopefully I'll be able to understand it a lot better^^.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-12-2008, 15:00
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: WindRiver C++ Specific Keywords

Quote:
Originally Posted by kyungjin View Post
Thanks for the reply. The link you mentioned was exactly what I was looking for.

I'm kinda browsing around the site looking at some of the code though... and a lot of the things here is really confusing. I mean, I have a good foundation knowledge in C/C++ (although I'll admit, OOP is not my forte... yet) but I guess there's a lot of robot specific words that I don't understand (i.e. PWM, Victor, Jaguar, Watchdog, etc.). I guess this is cause this is my first (and last) year doing FIRST robotics.

I know I didn't mention this last time... But could you also link up or post some example code entailing some of the more commonly used functions, objects, etc. A few examples, and hopefully I'll be able to understand it a lot better^^.
A few things to help...
PWM - Pulse width modulation, generic term for Victor/Jaguar/Servo
Victor - IFI Victor 883/884 Speed Controller(what we're used to having)
Jaguar - Luminary Micro Speed Controller(new for this year)
Watchdog - Essentially a timer that keeps track of your code, and will put your robot into a "safety" (read: disabled) mode if it determines your program has crashed by not resetting the watchdog timer before it ran out.

As far as code goes, I am not affiliated with a team this year, so I don't have access to the WindRiver tools, but it's my understanding that there are a couple examples of basic robot code included with the install. That should be enough to get you started.
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
Reply With Quote
  #5   Spotlight this post!  
Unread 22-12-2008, 23:21
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: WindRiver C++ Specific Keywords

Thanks for the response! Unfortunately... It's still a lot of confusing techspeak for me... I hope I'll get some more understanding about it before FIRST kickoff (any resources relating to some of the FIRST lingo, such as the one above, would be very appreciated).

Sorry for asking so much... I just want to get as much knowledge as I can before kickoff actually starts in a few days...
Reply With Quote
  #6   Spotlight this post!  
Unread 24-12-2008, 17:38
jnoor's Avatar
jnoor jnoor is offline
Registered User
FRC #0369
 
Join Date: Jan 2008
Location: newyork
Posts: 5
jnoor is an unknown quantity at this point
Re: WindRiver C++ Specific Keywords

Try... www.ifirobotics.com
Reply With Quote
  #7   Spotlight this post!  
Unread 28-12-2008, 13:38
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: WindRiver C++ Specific Keywords

The IFI robotics site seemed okay, but it wasn't really what I was looking for... Thanks for the help though.
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2009, 23:59
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: WindRiver C++ Specific Keywords

I have a quick question based on outputting to the console...

Using WindRiver I found that the console helps IMMENSELY with trying to figure out how things work. The only problem is, I'm not sure how to use it properly.

I'm been getting quite a bit of Fatal Errors... and anything dying or potential death-bringing can't be good at all...

So can anyone fill in some details regarding how to output messages to the console?
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2009, 12:42
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: WindRiver C++ Specific Keywords

There are reference PDF files on the usfirst.org website here (scroll about 2/3 of the way down).

The main two are the C/C++ Programming Guide (similar to WPILib.pdf from the past few years) and the C++ Reference Manual (I think this is the same reference that is hosted in HTML on their website).

Last edited by daltore : 01-02-2009 at 12:45.
Reply With Quote
Reply


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
Debug Windriver issue..... programmr C/C++ 12 06-02-2011 13:47
Strange WindRiver Error Maxpower57 Programming 1 10-12-2008 21:41
windriver projects nickmagus Programming 4 01-12-2008 23:29
Windriver Workbench Demo Videos neutrino15 Programming 8 27-11-2008 00:06


All times are GMT -5. The time now is 13:59.

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