change some names
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForAngle.java
index f9f5c7f0e285676a21b0548baa6d3a80df75879c..867f5eddf4d5865601fe068cec7739edde4c3732 100755 (executable)
@@ -37,9 +37,9 @@ public class TurnForAngle extends Command {
     this.target = Math.abs(angle);
     this.zeroAngle = driveTrain.getAngle();
 
-    this.gyroP = driveTrain.defaultGyroP;
-    this.gyroI = driveTrain.defaultGyroI;
-    this.gyroD = driveTrain.defaultGyroD;
+    this.gyroP = driveTrain.turnP;
+    this.gyroI = driveTrain.turnI;
+    this.gyroD = driveTrain.turnD;
 
     this.gyroController = new PIDController(this.gyroP, this.gyroI, this.gyroD);
     this.gyroController.setDoneRange(1);