fix alot of unnecessary/not used code and init gyroController
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / DriveDistance.java
index f6e11f4c94268c7190d540edb3045e618f2e5488..bd923a2af73427ffa69ad842431c1736feb4a12e 100755 (executable)
@@ -27,9 +27,10 @@ public class DriveDistance extends Command {
   public DriveDistance(double distance, double maxTimeOut) {
     requires(driveTrain);
     this.target = distance;
+
     this.driveController = driveTrain.getDriveController();
     this.driveController.setDoneRange(0.5);
-    this.driveController.setMaxOutput(motorVal);
+    this.driveController.setMaxOutput(1.1);
     this.driveController.setMinDoneCycles(5);
   }