Go to Post Chain stretch debigulates drive train performance. - Richard Wallace [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 17-01-2009, 20:36
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
WindRiver Programming

How do you compile the different class templates such as the camera and the gyroscope with the main template into a single program download to the cRIO? Are these compiled independently? Which manual is best for these questions for WindRiver programming and downloading?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2009, 14:51
cj.reeves cj.reeves is offline
Registered User
FRC #2589
 
Join Date: Jan 2009
Location: BYFIELD
Posts: 9
cj.reeves is an unknown quantity at this point
Re: WindRiver Programming

study for midterms
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2009, 15:45
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: WindRiver Programming

Somebody please help!
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2009, 15:56
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: WindRiver Programming

Quote:
Originally Posted by dnrobotics11 View Post
How do you compile the different class templates such as the camera and the gyroscope with the main template into a single program download to the cRIO? Are these compiled independently? Which manual is best for these questions for WindRiver programming and downloading?
Start with a base program.
Then copy the files from other projects to this new project's folder (in the workspace).
Make sure you copy the correct .h files also - you need only .cpp and .h files.

Now, you will have to make sure that the key START_ROBOT_CLASS statement is ONLY in your main program and no place else. It should also reference your program (class) only.

By #include'ing correct .H files and referencing the correct classes/methods from the other files you should be able to get a good build.

Hope this helps!
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2009, 19:43
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: WindRiver Programming

Thank you very much for the help. How do you call each of the other classes within the main template? I understand that you use the .h files to reference them but how do you indicate when to "activate" the separate code (such as the camera or the gyroscope)? I appreciate your help very much.
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
WindRiver Errors ExarKun666 C/C++ 7 04-03-2009 20:32
Windriver LAC McGurky C/C++ 12 25-02-2009 18:38
Getting Familiar with Programming in WindRiver kyungjin C/C++ 35 17-01-2009 13:04
compiling in windriver koreabell Programming 4 05-01-2009 15:32


All times are GMT -5. The time now is 14:54.

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