commit
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / JoystickDrive.java
index a3fed00424077b91f97e83c653a9de7e1994ac70..8f8a4f25a3e767b9fcbbe2bdda5b93174723304c 100644 (file)
@@ -1,6 +1,5 @@
 package org.usfirst.frc.team3501.robot.commands.driving;
 
-import org.usfirst.frc.team3501.robot.OI;
 import org.usfirst.frc.team3501.robot.Robot;
 
 import edu.wpi.first.wpilibj.command.Command;
@@ -21,9 +20,10 @@ public class JoystickDrive extends Command {
 
   @Override
   protected void execute() {
-    double left = -OI.leftJoystick.getY();
-    double right = -OI.rightJoystick.getY();
-    Robot.driveTrain.joystickDrive(left, right);
+    double thrust = Robot.oi.leftJoystick.getY();
+    double twist = Robot.oi.leftJoystick.getTwist();
+
+    Robot.driveTrain.joystickDrive(thrust, twist);
   }
 
   @Override