projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
competition fixes
[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 582cd80b69abb799a89a7b3afdcd56432d22a738..7b721e0a46dd1a6bba47e1cdf9dda7e9447e6e08 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java
@@
-52,7
+52,7
@@
public class DriveDistance extends Command {
@Override
protected void execute() {
double xVal = gyroP * (driveTrain.getAngle() - zeroAngle);
@Override
protected void execute() {
double xVal = gyroP * (driveTrain.getAngle() - zeroAngle);
- double yVal = driveController.calcPID(driveTrain.get
Avg
EncoderDistance());
+ double yVal = driveController.calcPID(driveTrain.get
Right
EncoderDistance());
double leftDrive = yVal - xVal;
double rightDrive = yVal + xVal;
double leftDrive = yVal - xVal;
double rightDrive = yVal + xVal;