View Single Post
  #4   Spotlight this post!  
Unread 19-01-2013, 17:25
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Re: SetSafetyEnabled() and SetExpiration()

We're using java and we had the same problem. We tried:

motor1->SetSafetyEnabled(true);
motor1->SetExpiration(10.0);

Even with these settings, the motor was running jerkily. The jerks were occurring much more frequently than 10 seconds. I know this because the command was defined to run for 3 seconds.

If we disabled the SetSafetyEnabled, the motor ran smoothly.

Any thoughts on why the system seems to think it needs to shut down the motor before the code can get through a single loop of the teleopPeriodic?
Reply With Quote