View Single Post
  #1   Spotlight this post!  
Unread 09-02-2010, 09:57
l0jec l0jec is offline
Registered User
no team
 
Join Date: Oct 2009
Rookie Year: 2004
Location: St. Louis, MO
Posts: 52
l0jec has a spectacular aura aboutl0jec has a spectacular aura about
Re: [FTC]: Robot problems with motor movment

You issue is likely with floating the motors in ROBOTC:
Code:
    else
    {
      motor(shooterMotor) = 0;
      bFloatDuringInactiveMotorPWM = true;
    }
I've notice some erratic behavior if you set a motor, change the bFloatDuringInactiveMotorPWM flag and then set the motor again. Remember that the flag affects all your motors and it seems to only affect motors when you actually set a motor (if you set a motor and then flip the flag, ROBOTC will not apply the coast/float flag until you set the motor again).
You may want to just always float or change the flag back and forth every time before you set any of your motor outputs.
Reply With Quote