Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Regarding flashing the roboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=132664)

Hsifeulbhsifder 11-01-2015 20:43

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?

fsilberberg 12-01-2015 00:59

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.

Peter Johnson 12-01-2015 02:50

Re: Regarding flashing the roboRIO
 
Quote:

Originally Posted by fsilberberg (Post 1426580)
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

Re: Regarding flashing the roboRIO
 
Quote:

Originally Posted by Peter Johnson (Post 1426606)
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/blo.../cli_deploy.py (obviously we're uploading different artifacts, so take that into consideration).

Hsifeulbhsifder 12-01-2015 19:15

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.


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

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