View Single Post
  #4   Spotlight this post!  
Unread 20-02-2012, 21:48
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Problems with LabView Default Code

Quote:
Originally Posted by MAldridge View Post
hmm, sounds pretty generic, how fast is fast?
As fast as you tell it to be. The error is caused by the Motor Safety for the drive code (since the error cites RobotDrive as the error's source). That means that the code has exceeded the time limit (defaults to 100 ms) set for the maximum time between updates to a motor's speed (this prevents runaway motors). Each time you set a new value to the motor, the timer is reset until the next update. You can change the timeout for the safety by using the Safety Config VI (WPI Robotics Library->RobotDrive->Advanced) and setting the timeout to whatever value you want.

But in order to solve the bigger problem, I'd recommend going through your code and trying to fix anything that could be slowing it down this much. Often, an unhandled error somewhere in your code is the culprit. Or you could have loops executing within your teleop code that cause one iteration to take too long. Or you could just have too much code in your loop and it simply takes too long to execute.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote