Quote:
Originally Posted by Team 4939
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.