![]() |
Is there a deploy-only utility to load roborio?
Hi folks:
Is there a deploy-only utility to load code into the roborio? That is, can we generate a binary file using eclipse on the programming laptop, send this binary file to the folks using the driver station laptop, and they can use a simple utility to deploy it to the roborio? We are programming in java. Or does the entire development environment need to be set up on the other laptop, the whole project zipped/sent/imported, etc? This would be handy when the programmers are making changes off-site and want to easily send an update to the drive team doing testing elsewhere. thx |
Re: Is there a deploy-only utility to load roborio?
ftp is all you need.
|
Re: Is there a deploy-only utility to load roborio?
Ahh, well that is encouraging, but I am not quite sure how to ftp to the roborio.
I presume that the file to send is C:\...\project-name\dist\FRCUserProgam.jar, and it is ftp'd over USB to 172.22.11.2:22, but that is about as far as I can get at the moment. The output from the eclipse deploy is: Code:
Buildfile: C:\Users\USER\Desktop\frc-code\test-bot-7\build.xmlCan you tell me the appropriate ftp command I can use from the command prompt (and embed into a bat file)? The jar file and ftp address seem obvious, but where in the roborio file system is it placed? thx, gil |
Re: Is there a deploy-only utility to load roborio?
Run as a WPILib Java Deploy, cancelling the build when it reaches "trying to find RoboRIO"
You should have FRCUserProgram.jar in the dist folder in your project root. You can copy this to your RoboRIO using scp (scp FRCUserProgram.jar lvuser@roborio-TEAM-frc.local:/home/lvuser). You will need SCP for this to work, which is not included with windows. If you have another FTP solution, use user lvuser, password blank, path /home/lvuser/FRCUserProgram.jar You're 100% better off using a proper build system, whether it be the eclipse plugins or something like gradlerio. |
Re: Is there a deploy-only utility to load roborio?
You could also tell the drivers to run a git pull and then deploy it from Eclipse.
|
Re: Is there a deploy-only utility to load roborio?
Got it. Loaded filezilla on the driver station laptop (declined the extra program it tries to install).
In File/Site-Manager, added new site, called it roborio, Host 172.22.11.2, Port 22, Protocol SFTP, Login-Type Normal, User lvuser, Password (blank). Upon Connect, it places you right into the /home/lvuser directory (right-side panel). Just need to navigate to the local directory where the new FRCUserProgram.jar file resides (left-side panel), and double-click it to upload to roborio. Disconnect and press Reset on the roborio. Run Driver Station. Easy-Peasy :) Thanks everybody. gil |
| All times are GMT -5. The time now is 22:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi