Go to Post Enlighten a man who sometimes has difficulty understanding why others stray outside the box, when the box appears to be an optimized and elegant solution. - JVN [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 02-10-2012, 11:28 PM
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: "Output not updated often enough" Error

Quote:
Originally Posted by TravSatEE View Post
I experimented with this some more this afternoon and see a good workaround without compromising safety.

Edit WPILIB MotorSafety.java line 15 to be

Code:
public static final double DEFAULT_SAFETY_EXPIRATION = 0.5;
And then rebuild the WPILIB project.

The slight increase in time won't compromise the built in safety. This timeout can cause motor output to pulse, which will increase the motor temperature and you won't be running at top speeds.
You could also just do setSafetyEnabled to false...
Reply With Quote
  #2   Spotlight this post!  
Unread 02-11-2012, 02:07 AM
TravSatEE's Avatar
TravSatEE TravSatEE is offline
Spacecraft Engineer and more
FRC #2035 (Robo Rockin' Bots)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Monterey, CA
Posts: 26
TravSatEE is infamous around these partsTravSatEE is infamous around these parts
Re: "Output not updated often enough" Error

Quote:
Originally Posted by Chiller View Post
You could also just do setSafetyEnabled to false...
While this is an approach, given that the teams have not yet understood some of the inner workings of WPILIB (I don't know it all myself either), I don't think disabling safety code is the right thing to do for these teams.

What makes the RobotDrive potentially dangerous is that under some programming circumstances, the robot can drive uncontrollably from lack of providing new driving instructions. I believe its goal was to help teams avoid recreating the wheel on implementing a tank or arcade drive, but the developers threw in some safety considerations also.

Last edited by TravSatEE : 02-11-2012 at 02:10 AM.
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 08:55 AM.

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