change variables 'left' and 'right' that store joystick values to 'thrust' and 'twist'
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / JoystickDrive.java
index cea1b6b919bbe92e36869d576c1eb7aa8ba70e22..d12614f06ca99b2fb64a1c03173f39037c453a7a 100755 (executable)
@@ -20,10 +20,10 @@ public class JoystickDrive extends Command {
 
   @Override
   protected void execute() {
-    final double left = OI.leftJoystick.getY();
-    final double right = OI.rightJoystick.getY();
+    final double thrust = OI.rightJoystick.getY();
+    final double twist = OI.rightJoystick.getTwist();
 
-    Robot.getDriveTrain().joystickDrive(left, right);
+    Robot.getDriveTrain().joystickDrive(-thrust, -twist);
   }
 
   @Override