Purge code of all unused fields/classes. Only testing code.
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / JoystickDrive.java
index 861432f5a975d08dfd4d2cd6cd7e48a33c1f6900..3db4388046fa4e532f5471c5da3b19f096585286 100644 (file)
@@ -1,5 +1,6 @@
 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;
@@ -22,8 +23,8 @@ public class JoystickDrive extends Command {
   protected void execute() {
     double k = (Robot.driveTrain.isFlipped() ? -1 : 1);
     // IDK why but the joystick gives positive values for pulling backwards
-    double left = -Robot.oi.leftJoystick.getY();
-    double right = -Robot.oi.rightJoystick.getY();
+    double left = -OI.leftJoystick.getY();
+    double right = -OI.rightJoystick.getY();
     Robot.driveTrain.drive(left * k, right * k);
   }