View Single Post
  #15   Spotlight this post!  
Unread 04-02-2014, 16:20
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 832
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: [cRIO] Robot Drive... Output not updated often enough.

Quote:
Originally Posted by Team 4939 View Post
Code:
    
    public void operatorControl() {
        chassis.setSafetyEnabled(true);
        while (isOperatorControl() && isEnabled()) {
            double speed;
            double rot;
            speed = mainStick.getY();
            rot = mainStick.getX();
            chassis.arcadeDrive (speed, rot);
    }
    }

}

A quick fix for your turning backwardness is to invert the sign of your stick values (value * -1):
Code:
rot = -mainStick.getX();
Additionally, you could check to make sure your motors are wired correctly to the speed controllers, that your PWM cables are plugged into the controllers you want them to be plugged into, or that you set up your arcadeDrive/controllers in the right way in your code.
__________________

Last edited by Ty Tremblay : 04-02-2014 at 16:24.
Reply With Quote