Go to Post Less playing to the camera, more talking about cool FIRST stuff please. - Cuog [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 17-02-2011, 16:18
555Robotics 555Robotics is offline
Registered User
FRC #0555
 
Join Date: Feb 2011
Location: New Jersey
Posts: 4
555Robotics is an unknown quantity at this point
cRIO resetting during Teleop?

We've recently started having this problem where the cRIO connects to the driver station - we can ping it fine - but when we go to Enable it, we encounter some issues:
  1. The driver station indicates that it's enabled
  2. The compressor doesn't turn on, and no user messages appear
  3. After a few seconds, the driver station loses communication
  4. During this time, however, the battery voltage is displayed correctly

When we try to ping it while the communications seem to be down, it times out for a bit and then comes back. We concluded that this is because the cRIO reboots whenever Teleop is started. Even worse, however, is that this behavior is completely inconsistent - sometimes when we hard reset the cRIO, we have this problem, and sometimes we don't. We've tested it further and found that the problem seems to happen in the exact same way regardless of how we're connected, wireless or tethered. We can't find anything in our code that would cause the cRIO to reboot, and we even tried reverting to a previous version of the code that definitely worked and we still had the same problems. We got the most recent v28 image and the latest Windriver update -- no luck.

I've posted our code to a pastebin, hopefully someone here can help us out.

http://paste.ubuntu.com/568444/
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2011, 06:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: cRIO resetting during Teleop?

Are you using the M1011 camera? It seems that the C++ camera stuff has a long-standing bug that is hit way more often with the M1011. The Python thread talks about a fixed version. If you do not init the camera and the problem goes away, that would be another clue to suspect the camera code.

If not, try to connect the serial cable or netconsole and view the output to see why the cRIO is resetting.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2011, 09:53
555Robotics 555Robotics is offline
Registered User
FRC #0555
 
Join Date: Feb 2011
Location: New Jersey
Posts: 4
555Robotics is an unknown quantity at this point
Re: cRIO resetting during Teleop?

We are using the Axis 206 camera, although it isn't connected yet. At the moment the problem seems to have gone away, although we have no idea why -- which is very worrying. When it comes back up I'll try commenting out the camera code and seeing if it works better.

Thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 10:21
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: cRIO resetting during Teleop?

Have you checked your power connections? We had a similar problem where everything looked fine when disabled, but we lost all comms with the digital I/O. I'd check there first before looking for something more complex.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2011, 23:05
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: cRIO resetting during Teleop?

Another issue we found today at a local scrimmage was that if your stop button is loose, the tiniest jostle will disable the robot. I would not imagine that this would cause communication to be lost, but when we had teams disable the stop button from the diagnostics tab, the problem stopped occurring. Some teams were experiencing communication lost though and others weren't, but the stop button seemed to fix both for some reason.
__________________
"Don't worry, programming can fix it"
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2011, 14:41
555Robotics 555Robotics is offline
Registered User
FRC #0555
 
Join Date: Feb 2011
Location: New Jersey
Posts: 4
555Robotics is an unknown quantity at this point
Re: cRIO resetting during Teleop?

Just to update:

The whole problem disappeared until today, and now the cRIO is just rebooting whenever it feels like it, regardless of whether or not there is communication. The RSL is staying in a steady on state, even while the cRIO reboots.

We really have no idea what's going on at this point -- the frame isn't shorting to the cRIO. One possibility is a bad PDB, but since this is a new one it seems very unlikely.
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 13:54.

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