|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
No robot code on roboRIO
Our team is trying to deploy an example C++ program to the roboRIO, as per the instructions in the "Getting Started With the 2016 Control System" document, and are running into an error with actually getting the code onto the roboRIO.
When we deploy code to the roboRIO, our debug log has the following output: Buildfile: C:\Users\DriveStation\workspace\getting_started\bu ild.xml Trying to override old definition of task classloader get-target-ip: [echo] Trying Target: roboRIO-1997-FRC.local [echo] roboRIO found via mDNS dependencies: [echo] roboRIO image version validated deploy: [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : rm -f /home/lvuser/FRCUserProgram [echo] [athena-deploy] Copying code over. [scp] Connecting to roboRIO-1997-FRC.local:22 [scp] done. [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : killall -q netconsole-host || : [scp] Connecting to roboRIO-1997-FRC.local:22 [scp] done. [echo] [athena-deploy] Starting program. [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : . /etc/profile.d/natinst-path.sh; chmod a+x /home/lvuser/FRCUserProgram; /usr/local/frc/bin/frcKillRobot.sh -t -r; [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : sync BUILD SUCCESSFUL Total time: 10 seconds Everything appears to be successful, however the roboRIO comm light is red (indicating no code) and the driver station still shows no robot code. Last edited by m1tche11d : 01-13-2016 at 10:31 PM. Reason: Edited to make problem more clear |
|
#2
|
|||
|
|||
|
Re: No robot code on roboRIO
There's no error in the log.... the part where it says "Build Successful" means it succeeded.
|
|
#3
|
|||
|
|||
|
Re: No robot code on roboRIO
I understand that. However, the driver station is telling us that there is no robot code on the roboRIO in spite of the successful build log. No matter how many times we reboot the roboRIO or restart the code, it still is telling us (after a successful build log) that the robot has no code on it.
|
|
#4
|
|||
|
|||
|
Re: No robot code on roboRIO
We ran into the same error.
Are you using the simple robot template? If you are, try adding this code: void Disabled() { while(IsDisabled()){} } and this: void RobotInit() { } it appears that these need to be overriden, or the robot will kill the process directly after you deploy it. |
|
#5
|
|||
|
|||
|
Re: No robot code on roboRIO
No dice, same situation. The build log did change slighty (Also, I added the colors it prints in so it would be easier to read:
Buildfile: C:\Users\DriveStation\workspace\getting_started\bu ild.xml Trying to override old definition of task classloader get-target-ip: [echo] Trying Target: roboRIO-1997-FRC.local [echo] roboRIO found via mDNS dependencies: [echo] roboRIO image version validated deploy: [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : rm -f /home/lvuser/FRCUserProgram [echo] [athena-deploy] Copying code over. [scp] Connecting to roboRIO-1997-FRC.local:22 [scp] done. [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : killall -q netconsole-host || : [scp] Connecting to roboRIO-1997-FRC.local:22 [scp] done. [echo] [athena-deploy] Starting program. [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : . /etc/profile.d/natinst-path.sh; chmod a+x /home/lvuser/FRCUserProgram; /usr/local/frc/bin/frcKillRobot.sh -t -r; [sshexec] killall: lvrt: no process killed [sshexec] Remote command failed with exit status 1 [sshexec] Connecting to roboRIO-1997-FRC.local:22 [sshexec] cmd : sync BUILD SUCCESSFUL Total time: 10 seconds We only got this specific log once, when I redeploy the code we get the same log as in the original post. To me, it seems that the two colored lines near the bottom are telling me that the code deploy is cancelling for some reason, but I can't tell why it's doing so. Last edited by m1tche11d : 01-14-2016 at 05:16 PM. |
|
#6
|
|||
|
|||
|
Re: No robot code on roboRIO
Minor detail: the folder for our project has a small red x over it. I don't know if this is indicative of a larger problem or not.
|
|
#7
|
|||||
|
|||||
|
Re: No robot code on roboRIO
And just to verify, this roboRIO has had its firmware updated (https://wpilib.screenstepslive.com/s...borio-firmware) and has been imaged (https://wpilib.screenstepslive.com/s...g-your-roborio), right?
(Taking guesses--I myself am new to this control system! ) |
|
#8
|
|||||
|
|||||
|
Re: No robot code on roboRIO
|
|
#9
|
|||
|
|||
|
Re: No robot code on roboRIO
Quote:
|
|
#10
|
||||
|
||||
|
Re: No robot code on roboRIO
Quote:
|
|
#11
|
||||
|
||||
|
Re: No robot code on roboRIO
Can you try the following...
[1] Make sure a gamepad is connected and wired to slot 5 (the last spot) in the driver station. Change your source to use that slot, or just use an extra joystick/gamepad to ensure that slot is not empty. Either is fine. [2] Then restart your project using the restart-robot-code, or redeploying. Does that remove the crash symptom? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|