input correct constructor
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / DriveDistance.java
index 278540d54a2200aa11add4af4e0fae5dbe90273e..d78ab4b58926acf40a186886b5b5f423d8d45ca1 100755 (executable)
@@ -29,7 +29,10 @@ public class DriveDistance extends Command {
     this.maxTimeOut = maxTimeOut;
     this.target = distance;
 
-    this.gyroP = driveTrain.getGyroController().getP();
+    this.driveP = driveTrain.driveP;
+    this.driveI = driveTrain.driveI;
+    this.driveD = driveTrain.driveD;
+    this.gyroP = driveTrain.driveStraightGyroP;
 
     this.driveController = driveTrain.getDriveController();
     this.driveController.setDoneRange(0.5);