Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Save code to Driver Station (http://www.chiefdelphi.com/forums/showthread.php?t=72251)

Comatose 17-01-2009 08:09

Save code to Driver Station
 
We heard somewhere that you could save code onto the driver station so a host computer wouldn't be needed at competitions. Is this true? If so, how do you save it to the drive station.

Greg McKaskle 17-01-2009 08:47

Re: Save code to Driver Station
 
You definitely can make code run at boot time. How to do it differs depending on the programming tool. Look for phrases like deployment or deploying code in the tutorials.

Greg McKaskle

keehun 17-01-2009 09:52

Re: Save code to Driver Station
 
What you need to do is open up the "Targets" collapsible in the Project Window (all the files, targets, etc) and right click on it and set it to be the "start up" program.

keehun
Team 2502

MikeDubreuil 17-01-2009 12:15

Re: Save code to Driver Station
 
Quote:

Originally Posted by Comatose (Post 802302)
We heard somewhere that you could save code onto the driver station so a host computer wouldn't be needed at competitions. Is this true? If so, how do you save it to the drive station.

It's important to note that you can not save code onto the Driver Station. You can however, update the firmware on the Driver Station. See the Software Update section on the FIRST website for more info.

You can download your own modified code to the cRIO. When downloading code to the cRIO for permanent use, without the need for a laptop to run the executable, the term used is "deploying."

Alexa Stott 17-01-2009 14:41

Re: Save code to Driver Station
 
In WindRiver, you can deploy the code by going to FIRST-->Download. A status bar should display. Once the code is deployed, you must restart the cRIO.

Mikesername 17-01-2009 18:48

Re: Save code to Driver Station
 
Don't know if this is what you need, but here's a problem my team solved today with the help of someone who worked with the controller (or something like, that...)

Anyway, don't just deploy the VI. That just stores it in your cRIO's RAM. What you need to do is, in project explorer, click "Build Specifications" at the bottom and then right click FRC Basic Robot Deployment. Next, click "Build". When that's done click "Deploy". Then once that's done, click "Run as startup".

After this we had some trouble getting the lights on our Jaguars to stop blinking but we fixed it by unhooking the computer (we were hard-wired in) and flipping the driver station from autonomous to teleop once or twice (that sometimes catches it).

After that we tested it by rebooting and it worked.


All times are GMT -5. The time now is 02:23.

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