Go to Post :( The Internet just ate my post. - Greg Marra [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 17-02-2012, 13:18
J.Mo J.Mo is offline
Registered User
FRC #2259
 
Join Date: Feb 2012
Location: Denver
Posts: 1
J.Mo is an unknown quantity at this point
Timeout has been exceeded

Hi All,
I'm a rookie mentor trying to help a team that is switching to C++ for the first time.

I think we've successfully deployed our code, but we're getting this error message in the diagnostics section of the driver station:

ERROR: A timeout has been exceeded: RobotDrive... Output not updated often enough... in Check() in C:/WindRiver/workspace/WPILib/MotorSafetyHelper.cpp at line 123.

Could someone point is in the right direction on where we need to go?
We can post some of our code if that helps...

Thank you so much!
-J.Mo

Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2012, 16:00
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Timeout has been exceeded

It is hard to help w/o seeing your code. But basically you are doing too much work between the messages sent by the driver station. You have to process the driver station messages (which come at 50Hz or so), miss 3 of them and you get the error message. The system then shuts down for safety reasons.

Look for endless loops, image processing, large numbers of debug messages and anything that take too long (inter-message).


HTH
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2012, 16:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Timeout has been exceeded

Quote:
Originally Posted by wireties View Post
...Look for endless loops, image processing, large numbers of debug messages and anything that take too long...
... like delays in TeleOp


Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2012, 16:40
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Timeout has been exceeded

According to the WPILib source code, the driver station object will check all the motor safety helper objects once every four messages (assuming the messages are arriving at 50Hz - 20msec, it means it is scanning each motor safety helper object every 80msec). Motor Safety Helper is inherited by the following classes: CANJaguar, RobotDrive and SafePWM (servos, victors and Jaguars in PWM mode), meaning that RobotDrive, each CANJaguar and each non-RobotDrive motors have their own Safety Helper. This is important because it means the SetSafetyEnabled() as well as SetExpiration() is per SafetyHelper object. Therefore, if you lengthened the expiration of one SafetyHelper object or disabled one SafetyHelper object, you may still have the "not updated often enough" error for other objects. Fortunately, the message does contain the description of the SafetyHelper object that has "expired". For example, the following message indicated that it was the RobotDrive's Safety Helper that expired.

ERROR: A timeout has been exceeded: RobotDrive... Output not updated often enough... in Check() in C:/WindRiver/workspace/WPILib/MotorSafetyHelper.cpp at line 123.

For RobotDrive, it is the various Drive functions that feeds the "watchdog timer". Then you should concentrate on determining why the "Drive" function is not called often enough.

For other motors such as an arm, the function that feeds the "watchdog" is probably the SetSpeed() function. For appendages, your code may not call the SetSpeed() function periodically, thus nobody is feeding the watchdog for these motors periodically and causing the error message. For those scenarios, the messages are probably harmless since it is most likely happened when the appendage is not moving. However, it is discomforting seeing all these errors flying by in the netconsole. In order to get rid of these messages, you may want to enable safety only when you "move" the appendage and disable it when you are done so the watchdog will not bark at you when your appendage is idling.

BTW, only the RobotDrive object has Motor Safety ON by default. All other objects have safety off. So in theory, you may not have to worry about it unless you explicitly enable safety for a motor.
__________________

Last edited by mikets : 17-02-2012 at 17:16.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2012, 19:10
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Timeout has been exceeded

great data Mike - thanks
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #6   Spotlight this post!  
Unread 23-09-2014, 09:50
GR techcenter GR techcenter is offline
Registered User
FRC #5143
 
Join Date: Sep 2014
Location: Grand Rapids
Posts: 1
GR techcenter is an unknown quantity at this point
Re: Timeout has been exceeded

Our team is having a heck of a time with a similiar message but the error is at line 117 but when we search the code for that there isnt a line of code there if anyone could help it'd be much appreciated
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:32.

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