Quote:
Originally Posted by Sparkyshires
That's awesome! So for a novice person to the in-depths of the roboRIO, how would you "deploy" it? Just ssh into it and replace the image with the one generated?
|
By deploy it, do you mean the robot program? Take a look at the ~/wpilib/cpp/current/ant directory. The build.xml there is the ant script we use to deploy the program. Basically, we run a command on the robot to stop the currently running program. We then replace the /home/lvuser/FRCUserProgram and the /home/lvuser/robotCommand files. The FRCUserProgram is the generated code, and robotCommand is the script in the ~/wpilib/cpp/current/ant folder. We then run a command to exec that script. That script is what takes care of setting up stdout to go to a log file and output over netconsole so you can see it in RioLog. The relevant ant task you're looking for is deploy, along with some properties in the build.properties file.
You might also be able to just use ant to call that script, as I'm not sure how make does with ssh and scp.