Quote:
Originally Posted by TenaciousDrones
I'm using one joystick. And the code line is
public void operatorControl() {
chassis.setSafetyEnabled(true);
while (isOperatorControl() && isEnabled())
chassis.arcadeDrive(rightStick);
Timer.delay(0.01);
}
|
Oh, you are using the simple robot template. I recommend that you look into the command based robot template. Unless your team has a REALLY simple robot, the simple robot template is going to get really crowded and hard to read really fast. (Hence the name simple robot template).
Anyways... the solution might be a bit more complicated than this; I will check when I get home. Replace chassis.arcadeDrive(rightStick); with chassis.arcadeDrive(rightStick.getY(),
- rightStick.getX()); That should invert the turn values.