Go to Post I think if you talk with mentors of FIRST teams, you will find that they have changed the world. - Bill Moore [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 05-02-2009, 18:39
HarryScheiner HarryScheiner is offline
Mentor for Team 1358
FRC #1358 (MacArthur Generals)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: New York
Posts: 18
HarryScheiner is an unknown quantity at this point
How do I load the default code?

Hi, I'm trying to set up Wind River with the default code to get at least something on the flash memory of the cRIO. I've set up a project with the SimpleTemplate, but from what I can see, the project only includes .h files, and MyRobot.cpp. Shouldn't there be .cpp files for each .h file? I can see no declarations for any of the functions in the .h files anywhere in the project, and I searched for ".cpp" in the WindRiver directory and could not find anything. However, I downloaded the source code (WPILibRC0.1718SourceCode.zip) from http://first.wpi.edu/FRC/frcupdates.html , but I can't figure out what directory it has to go in in order for this to work.

Any help would be greatly appreciated. Thank you.


EDIT: I forgot to mention, the default code from the cRIO imaging tool works fine, but it does not stay in memory after a reboot.

Last edited by HarryScheiner : 05-02-2009 at 18:41.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2009, 21:58
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: How do I load the default code?

There are no .cpp files because they are pre-compiled. Just build the default template, and download it to your robot. The file to load is found under preferences->first downloader
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2009, 22:24
HarryScheiner HarryScheiner is offline
Mentor for Team 1358
FRC #1358 (MacArthur Generals)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: New York
Posts: 18
HarryScheiner is an unknown quantity at this point
Re: How do I load the default code?

I tried that, but when I load the code the robot does not move.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2009, 17:52
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: How do I load the default code?

did you go to File>New>Example:vxWorks Download... :Next:FRC Simple Robot Template:Finish?
also make sure you enable the robot
Edit: enable by the switch you attach on the side of the DS
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2009, 18:51
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: How do I load the default code?

HarryScheiner,
1)Did you make sure to Undeploy (Under the same FIRST menu bar entry as Download) before downloading the SimpleTemplate?
2)After downloading, did you reset the robot?
3)Have you connected the cRIO's serial port to your PC via a null-modem connection? Is VxWorks throwing up any error messages to the console as it boots?
__________________


Which badges can you claim?
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2009, 17:40
HarryScheiner HarryScheiner is offline
Mentor for Team 1358
FRC #1358 (MacArthur Generals)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: New York
Posts: 18
HarryScheiner is an unknown quantity at this point
Re: How do I load the default code?

Quote:
Originally Posted by Redneck View Post
HarryScheiner,
1)Did you make sure to Undeploy (Under the same FIRST menu bar entry as Download) before downloading the SimpleTemplate?
2)After downloading, did you reset the robot?
3)Have you connected the cRIO's serial port to your PC via a null-modem connection? Is VxWorks throwing up any error messages to the console as it boots?
1) Yes
2) Yes
3) Could you explain this? I'm not sure I understand.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-02-2009, 16:46
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: How do I load the default code?

Quote:
Originally Posted by HarryScheiner View Post
3) Could you explain this? I'm not sure I understand.
What I mean is, have you done the following:
-Flipped the DIP switch on the cRIO that says "Console"
-Connected the 9-pin serial port on the cRIO to your computer (either a serial or USB port, depending on what you have available) with a null-modem cable
-Opened a terminal in Workbench (from the menubar Window -> Show view -> Terminal) or connected via some other program like HyperTerminal or PuTTY. Regardless of what you use, the settings should be:
connection type - serial
9600 baud,
8 data bits,
1 stop bit,
no parity,
no flow control
-Watched the cRIO's boot messages on the terminal to see if it's outputting any errors
__________________


Which badges can you claim?
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2009, 11:52
HarryScheiner HarryScheiner is offline
Mentor for Team 1358
FRC #1358 (MacArthur Generals)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: New York
Posts: 18
HarryScheiner is an unknown quantity at this point
Re: How do I load the default code?

Thank you. I managed to get it working, it turned out to be the simple mistake of not having the latest cRIO Imaging Tool. Guess I glanced over that one when I was updating
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
The Default Code robocata Programming 1 29-01-2006 17:59
Default code and the Compressor Matthew_H Programming 16 07-02-2005 07:19
Best Way To Insert Autonomous Code Into Default then load help.? :-)? gemccnp Programming 2 05-02-2005 18:58
Can't Compile the Default Code pressurex1 Programming 4 25-01-2004 20:26
How long does it take you to load the default code? vegasmcse Robotics Education and Curriculum 10 03-11-2003 21:41


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

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