projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gyroP should get gyroController's p
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
driving
/
DriveDistance.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
b/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
index 98628f34c9df8260dafcaab43d51dd05aa1d7508..fda39287097718d31923a28362c5892923a0499e 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
@@
-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);