Go to Post Even better than any [book] is simply becoming an active member of the Chief Delphi forums. Where do you think I got everything I know? - sanddrag [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 04-02-2016, 17:33
BuzzKillerOfFir BuzzKillerOfFir is offline
Registered User
FRC #1771
 
Join Date: Feb 2016
Location: Suwanee, Ga
Posts: 4
BuzzKillerOfFir is on a distinguished road
Strange RoboRio Issue

Our roborio is being detected, but is only accepting code for a second, after that it switches between no code and teleop disabled. We were able to enable teleop for a fraction of a second, and heard the compressor turn on. We were able to successfully able to reimage the rio, and no dice. Please help!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2016, 18:14
FTWDragonSlayer FTWDragonSlayer is offline
Registered User
FRC #4368
 
Join Date: Dec 2015
Location: Vicksburg
Posts: 2
FTWDragonSlayer is an unknown quantity at this point
Re: Strange RoboRio Issue

First, check battery voltage. Use the driver station voltage meter, or if you can't get that online for whatever reason, use a voltmeter between battery and Voltage Regulator Module. Then, check the roboRIO's power supply.

Second, check connection - if you can't do wireless, make sure you have a good ethernet cord attached. Try with several if you have them, or check it with another method.

Third, check all OTHER wiring.

Fourth, ask someone who's not trying to get answers out of the team electrician and programmer. (I'm the CAD guy/mechanical/safety captain/various others that aren't electrician or programming)

Good luck,
Team 4368 Bullbots

EDIT: Check your roboRIO firmware, you may actually need to update it.

Last edited by FTWDragonSlayer : 04-02-2016 at 18:17.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2016, 23:51
jlindquist74's Avatar
jlindquist74 jlindquist74 is offline
WOPR Software Integration Lead
FRC #1622
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 1337
Location: Poway, CA
Posts: 49
jlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant futurejlindquist74 has a brilliant future
Re: Strange RoboRio Issue

Quote:
Originally Posted by BuzzKillerOfFir View Post
Our roborio is being detected, but is only accepting code for a second, after that it switches between no code and teleop disabled. We were able to enable teleop for a fraction of a second, and heard the compressor turn on.
It sounds like your code is dying. Some of our rookie programmers have been having the same problem, and it always turns out they've dereferenced a null or uninitialized pointer.

You can check this by ssh'ing into the roboRIO
Code:
ssh admin@roborio-XXXX-frc.local.
You probably have no password set.
See if your robot code is running (I bet it isn't):
Code:
ps -ef | grep -i frcuserprogram
If it's not running, all you'll see in that listing is "grep -i frcuserprogram". If it IS running, kill that process:
Code:
killall FRCUserProgram
Then run it manually
Code:
cd /home/lvuser
./FRCUserProgram &
Try driving your robot. When it fails, look in the ssh window and see what error shows up. If you see "Segmentation Fault" or "Bus Error", you've done something wrong with a pointer or a reference. It's time to get together with your mentor for a code review.

(This is how we all learn. If someone ever claims to be a C or C++ programmer but tells you they've never had problems with pointers, they're a fraud, and you should run away.)
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2016, 00:35
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Strange RoboRio Issue

No code means your code is crashing.

Most likely you are getting to a point when your code crashes upon being enabled. This would likely occur in some code within your Teleop Periodic Function.

Not sure what language you are using, but you can view the output of the RoboRio in many ways. RioLog on Eclipse, or use the serial port and enable console output. http://digital.ni.com/public.nsf/all...257E46005366AE

In your code, Look for a place where you are trying to access a null pointer, most likely in the Telep function, since you are able to turn it on for a split second. The problem is very likely within your own code, and not with the Roborio firmware or image.

hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
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 01:58.

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