Go to Post Sometimes i wish the robot could fit into my pocket. - GMAdan [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 19-03-2015, 19:28
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 61
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
RoboRIO Teleop Freezeup

Howdy all! Working through a infrequently-occurring issue on our roboRIO:

A few times while connected to a field management system, we've had the RIO partially freeze up. We're still trying to gather telemetry to see what's happening exactly, but the symptoms are that the motors lock in at a single value (causing unwanted rotation we have to e-stop to prevent).

What we're observing via the driver station is a bump in processor load from 50% to 70%, and the RIO (but not the driver station) drops out of teleop mode.

There's no loops in this part of our code that would cause it to lock up. When it was happening, we were writing to a text log file on the RIO. Additonally, we read data from our sensors in separate threads from the main robot code. Other than that, it's just simple if statements and math.

We're already in the process of re-flashing the RIO firmware. It's hard to debug anything else since we can't reliably trigger the behavior yet. We're a bit worried there might be some corner-case in the RTOS we're hitting every now and then....

Anyone else observed similar odd behavior in the RIO?

Thanks much!

EDIT: Attached is a picture of our driver station log we captured during the anomaly.
Attached Thumbnails
Click image for larger version

Name:	image.png
Views:	60
Size:	79.0 KB
ID:	18685  

Last edited by gerthworm : 19-03-2015 at 19:38. Reason: add attachment
Reply With Quote
  #2   Spotlight this post!  
Unread 21-03-2015, 11:37
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: RoboRIO Teleop Freezeup

My team has lost comms with the RIO after autonomous mode ran because of IP address assigned manually. I've never seen your issue before, but checking to make sure that the IP address is automatically assigned. Has re-imaging the RIO helped at all?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-03-2015, 15:26
Altainia Altainia is offline
That one geeky guy...
FRC #5098 (Sting-R)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Kansas City, MO
Posts: 18
Altainia will become famous soon enoughAltainia will become famous soon enough
Re: RoboRIO Teleop Freezeup

I'd be curious to see your code for writing to a text file since you say that's occurring when you lock up, as well as the code that's around that (context is important). Also, I'd like to see the code that's locking up.

I'm also curious: does the text file get successfully written?
Reply With Quote
  #4   Spotlight this post!  
Unread 23-03-2015, 23:32
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 154
nickbrickmaster is an unknown quantity at this point
Re: RoboRIO Teleop Freezeup

If it's writing to the file on the main thread, then that would cause some freezing. Try creating a new thread to use only for file I/O.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2015, 12:09
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: RoboRIO Teleop Freezeup

If your doing any form of file io, I would reccamend using network tables and logging all the data on the driverstation computer. If you need help with it pm me.
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 10:48.

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