X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FDriveDistance.java;h=7b721e0a46dd1a6bba47e1cdf9dda7e9447e6e08;hp=582cd80b69abb799a89a7b3afdcd56432d22a738;hb=9ca89e45fa84b2ec93bc6adf60c7dde1e0a7defb;hpb=c9b2778700c8f0bd6dec88e9993e176823145308 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 582cd80..7b721e0 100755 --- 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); - double yVal = driveController.calcPID(driveTrain.getAvgEncoderDistance()); + double yVal = driveController.calcPID(driveTrain.getRightEncoderDistance()); double leftDrive = yVal - xVal; double rightDrive = yVal + xVal;