competition fixes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / ToggleDriveGear.java
index ee15ec8a5415c7dcc68b952649edf7600e93b060..e3c0dccac09eca69514a244f9a498ecd2a8b6223 100644 (file)
@@ -27,9 +27,8 @@ public class ToggleDriveGear extends Command {
 
   @Override
   protected void execute() {
-    Value leftPistonValue = driveTrain.getLeftDriveTrainPiston();
     Value rightPistonValue = driveTrain.getRightDriveTrainPiston();
-    if (leftPistonValue == Constants.DriveTrain.REVERSE_PISTON_VALUE) {
+    if (rightPistonValue == Constants.DriveTrain.REVERSE_PISTON_VALUE) {
       driveTrain.setHighGear();
     } else {
       driveTrain.setLowGear();