Go to Post Lighten it up a little to bring it in under the 120 pound weight limit, and I think you will have something there! - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-13-2016, 08:30 PM
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 01-13-2016, 08:37 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: No robot code on roboRIO

There's no error in the log.... the part where it says "Build Successful" means it succeeded.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-13-2016, 09:03 PM
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
Re: No robot code on roboRIO

Quote:
Originally Posted by RufflesRidge View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-14-2016, 09:17 AM
jtwilson jtwilson is offline
Registered User
FRC #1730 (Team Driven)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Lee's Summit MO
Posts: 3
jtwilson is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-14-2016, 02:24 PM
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-14-2016, 05:29 PM
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
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.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-14-2016, 06:00 PM
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
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! )
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #8   Spotlight this post!  
Unread 01-14-2016, 06:08 PM
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: No robot code on roboRIO

This thread looks similar.

http://www.chiefdelphi.com/forums/sh...hreadid=141652
__________________
Aren't signatures a bit outdated?
Reply With Quote
  #9   Spotlight this post!  
Unread 01-14-2016, 09:00 PM
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Re: No robot code on roboRIO

Quote:
Originally Posted by m1tche11d View Post
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-15-2016, 02:23 AM
jmullins16's Avatar
jmullins16 jmullins16 is offline
Registered User
AKA: Jeff Mullins
FRC #2135 (Presentation Invasion)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2011
Location: San Jose, CA
Posts: 22
jmullins16 is an unknown quantity at this point
Re: No robot code on roboRIO

Quote:
Originally Posted by JBotAlan View Post
FYI: This helped us... We are running again. Thanks.
Reply With Quote
  #11   Spotlight this post!  
Unread 01-15-2016, 03:10 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
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?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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