Go to Post We are making this up as we go along - please don't confuse us by telling us the way that it really should be done. - dlavery [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 10-02-2014, 16:56
JamesMcD_4505 JamesMcD_4505 is offline
Registered User
FRC #4505
 
Join Date: Jan 2014
Location: Maryland
Posts: 4
JamesMcD_4505 is an unknown quantity at this point
Output Not Updated Often Enough

Hello. We are using a motor to control an arm until it hits a limit switch. While this is in operation we get the "output not updated often enough" error and we are not able to control the drive train. How might we get around this?

Thank you for all of your help. We know that we have been asking a ton of questions this build season and we are extremely grateful for your patience.

-James 4505
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2014, 17:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: Output Not Updated Often Enough

Quote:
Originally Posted by JamesMcD_4505 View Post
Hello. We are using a motor to control an arm until it hits a limit switch. While this is in operation we get the "output not updated often enough" error and we are not able to control the drive train. How might we get around this?

Thank you for all of your help. We know that we have been asking a ton of questions this build season and we are extremely grateful for your patience.

-James 4505
TeleOp must complete execution well within 20ms, so it can be called again when the next data packet becomes available.

If you have code that takes longer than that to execute, you must either move the time-cosuming code to a separate thread, or use a "state machine" within TeleOp.


Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2014, 21:25
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Output Not Updated Often Enough

The "output not updated often enough" comes from the MotorSafetyHelper, a class inside WPILib. The idea is that it makes sure that your program is continuously updating motor values otherwise it stops the motors. By default it is only enabled for the RobotDrive class, those messages are coming from a RobotDrive object in your program.

Look for a place where you give the drive a value and then do a wait, maybe Timer.delay(). If the values to the RobotDrive object aren't update at least every 100ms, then the drive motors stop operating and that message comes out.

The reason the motor safety checks exist is to protect you against broken code that stops regularly updating the motors, causing the robot to "run away".

You can either make sure that you are continuously sending values to the RobotDrive object or use the method:

myRobotDriveObject.setSafetyEnabled(false);

and it will turn of the motor safety checks for the robot drive object. Do this right after you do the:

myRobotDrive = new RobotDrive(...);
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 09:34.

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