gyroP should get gyroController's p
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / DriveDistance.java
index 98628f34c9df8260dafcaab43d51dd05aa1d7508..fda39287097718d31923a28362c5892923a0499e 100755 (executable)
@@ -29,6 +29,8 @@ public class DriveDistance extends Command {
     this.maxTimeOut = maxTimeOut;
     this.target = distance;
 
+    this.gyroP = driveTrain.getGyroController().getP();
+
     this.driveController = driveTrain.getDriveController();
     this.driveController.setDoneRange(0.5);
     this.driveController.setMaxOutput(1.0);