competition fixes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / DriveDistance.java
index 582cd80b69abb799a89a7b3afdcd56432d22a738..7b721e0a46dd1a6bba47e1cdf9dda7e9447e6e08 100755 (executable)
@@ -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;