|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Regarding flashing the roboRIO
Is there any way to send code to the roboRIO from the command line, so custom build scripts can be created?
|
|
#2
|
|||
|
|||
|
Re: Regarding flashing the roboRIO
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.
|
|
#3
|
|||
|
|||
|
Re: Regarding flashing the roboRIO
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.
|
|
#4
|
||||
|
||||
|
Re: Regarding flashing the roboRIO
Quote:
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/blo.../cli_deploy.py (obviously we're uploading different artifacts, so take that into consideration). |
|
#5
|
|||
|
|||
|
Re: Regarding flashing the roboRIO
Thanks, I was actually creating an interpreter that could run code directly on the roboRIO. I will look into the pyfrc code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|