X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FTurnForAngle.java;h=867f5eddf4d5865601fe068cec7739edde4c3732;hp=f9f5c7f0e285676a21b0548baa6d3a80df75879c;hb=c846487e0cc034e05c44e3a2a11c9c72fde1bee9;hpb=35527abe487a3d3cee1ddb10b5c4debc2a2780e4 diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java index f9f5c7f..867f5ed 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java @@ -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);