projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweak auton middle gear command group
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
driving
/
TurnForAngle.java
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 867f5eddf4d5865601fe068cec7739edde4c3732..717f15151d5b8512218b2e865acade3403cd9ced 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
@@
-35,7
+35,6
@@
public class TurnForAngle extends Command {
this.direction = direction;
this.maxTimeOut = maxTimeOut;
this.target = Math.abs(angle);
this.direction = direction;
this.maxTimeOut = maxTimeOut;
this.target = Math.abs(angle);
- this.zeroAngle = driveTrain.getAngle();
this.gyroP = driveTrain.turnP;
this.gyroI = driveTrain.turnI;
this.gyroP = driveTrain.turnP;
this.gyroI = driveTrain.turnI;
@@
-50,6
+49,7
@@
public class TurnForAngle extends Command {
protected void initialize() {
this.driveTrain.resetEncoders();
this.gyroController.setSetPoint(this.target);
protected void initialize() {
this.driveTrain.resetEncoders();
this.gyroController.setSetPoint(this.target);
+ this.zeroAngle = driveTrain.getAngle();
}
@Override
}
@Override