update code
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForAngle.java
index 717f15151d5b8512218b2e865acade3403cd9ced..7e07577b7b001b9d767b89325320670bec1ec212 100755 (executable)
@@ -40,7 +40,7 @@ public class TurnForAngle extends Command {
     this.gyroI = driveTrain.turnI;
     this.gyroD = driveTrain.turnD;
 
-    this.gyroController = new PIDController(this.gyroP, this.gyroI, this.gyroD);
+    this.gyroController = Robot.getDriveTrain().getDriveController();
     this.gyroController.setDoneRange(1);
     this.gyroController.setMinDoneCycles(5);
   }