Thread: Twitchy Motors
View Single Post
  #60   Spotlight this post!  
Unread 15-02-2016, 13:51
hwu24110 hwu24110 is offline
Registered User
FRC #0988
 
Join Date: Feb 2014
Location: Las Vegas
Posts: 44
hwu24110 is an unknown quantity at this point
Re: Twitchy Motors

We found the solution. It was because we were missing motor.setExpiration(0.1)

Code:
    public Robot() {
        stickL = new Joystick(0);
        stickR = new Joystick(1);
        controller = new Joystick(2);
        LF = new Talon(0);
        RF = new Talon(3);
        LR = new Talon(1);
        RR = new Talon(4);
        LF.setExpiration(0.1);
        RF.setExpiration(0.1);
        LR.setExpiration(0.1);
        RR.setExpiration(0.1);