added negative signs to fix reversed driving meryem/sacramento
authorCindy Zhang <cindyzyx9@gmail.com>
Fri, 7 Oct 2016 05:41:36 +0000 (22:41 -0700)
committerCindy Zhang <cindyzyx9@gmail.com>
Fri, 7 Oct 2016 05:41:36 +0000 (22:41 -0700)
src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java

index 8f8a4f25a3e767b9fcbbe2bdda5b93174723304c..579942f5796f67ec8c43910052a8c30c0eba1313 100644 (file)
@@ -23,7 +23,7 @@ public class JoystickDrive extends Command {
     double thrust = Robot.oi.leftJoystick.getY();
     double twist = Robot.oi.leftJoystick.getTwist();
 
-    Robot.driveTrain.joystickDrive(thrust, twist);
+    Robot.driveTrain.joystickDrive(-thrust, -twist);
   }
 
   @Override