@Override
protected void execute() {
- double k = (Robot.driveTrain.isFlipped() ? -1 : 1);
- // IDK why but the joystick gives positive values for pulling backwards
double left = -OI.leftJoystick.getY();
- double right = -OI.rightJoystick.getY();
- Robot.driveTrain.drive(left * k, right * k);
+ double right = -OI.rightJoystick.getTwist();
+ Robot.driveTrain.drive(left, right);
}
@Override