View Full Version : Regarding flashing the roboRIO
Hsifeulbhsifder
11-01-2015, 20:43
Is there any way to send code to the roboRIO from the command line, so custom build scripts can be created?
fsilberberg
12-01-2015, 00:59
Sure, take a look at the ant scripts in the ~/wpilib/{java, cpp}/current/ant directories. The roboRIO supports SSH, username admin with a blank password.
Peter Johnson
12-01-2015, 02:50
Sure, take a look at the ant scripts in the ~/wpilib/{java, cpp}/current/ant directories. The roboRIO supports SSH, username admin with a blank password.
Note that you want to upload code as lvuser, not admin, to avoid permission problems. If you are switching between languages, you will also want to update the /home/lvuser/robotCommand script as appropriate.
virtuald
12-01-2015, 09:57
Note that you want to upload code as lvuser, not admin, to avoid permission problems. If you are switching between languages, you will also want to update the /home/lvuser/robotCommand script as appropriate.
Yup, what Peter said (we got bit by this problem). Do not use the admin user. You will cry.
The ant scripts are a bit difficult to read. If you want an example in an actual programming language (python), check out https://github.com/robotpy/pyfrc/blob/master/lib/pyfrc/mains/cli_deploy.py (obviously we're uploading different artifacts, so take that into consideration).
Hsifeulbhsifder
12-01-2015, 19:15
Thanks, I was actually creating an interpreter that could run code directly on the roboRIO. I will look into the pyfrc code.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.