Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   No robot code on roboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=141678)

m1tche11d 01-13-2016 08:30 PM

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.

RufflesRidge 01-13-2016 08:37 PM

Re: No robot code on roboRIO
 
There's no error in the log.... the part where it says "Build Successful" means it succeeded.

m1tche11d 01-13-2016 09:03 PM

Re: No robot code on roboRIO
 
Quote:

Originally Posted by RufflesRidge (Post 1523154)
There's no error in the log.... the part where it says "Build Successful" means it succeeded.

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.

jtwilson 01-14-2016 09:17 AM

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.

m1tche11d 01-14-2016 02:24 PM

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.

m1tche11d 01-14-2016 05:29 PM

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.

JBotAlan 01-14-2016 06:00 PM

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! :D )

JBotAlan 01-14-2016 06:08 PM

Re: No robot code on roboRIO
 
This thread looks similar.

http://www.chiefdelphi.com/forums/sh...hreadid=141652

rod@3711 01-14-2016 09:00 PM

Re: No robot code on roboRIO
 
Quote:

Originally Posted by m1tche11d (Post 1523148)
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.

I am having the same issue when trying to run the example mecanum program or arcade program. The Comm Light goes green for 1/2 second then red. I connected a usb camera to roborio, then tried the Simple Vision example and it ran as expected. Do not know the issue with drive programs.

jmullins16 01-15-2016 02:23 AM

Re: No robot code on roboRIO
 
Quote:

Originally Posted by JBotAlan (Post 1523792)

FYI: This helped us... We are running again. Thanks.

ozrien 01-15-2016 03:10 PM

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?


All times are GMT -5. The time now is 09:12 AM.

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