X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FToggleDriveGear.java;h=e3c0dccac09eca69514a244f9a498ecd2a8b6223;hp=ee15ec8a5415c7dcc68b952649edf7600e93b060;hb=9ca89e45fa84b2ec93bc6adf60c7dde1e0a7defb;hpb=c9b2778700c8f0bd6dec88e9993e176823145308 diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleDriveGear.java b/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleDriveGear.java index ee15ec8..e3c0dcc 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleDriveGear.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleDriveGear.java @@ -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();