X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fauton%2FPassLowBar.java;h=3f43356e72ef349d26ff0e73bce71ceff2950a44;hb=c688e9da1214ed9257214a0b265a1c1b7eeb1506;hp=8f35a25cd393b9275d317cec4ac5f67a0101e557;hpb=600a1a1c0e90c03a198c6036de8e5157b7f96af3;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java index 8f35a25c..3f43356e 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java +++ b/src/org/usfirst/frc/team3501/robot/commands/auton/PassLowBar.java @@ -25,13 +25,13 @@ import edu.wpi.first.wpilibj.command.CommandGroup; public class PassLowBar extends CommandGroup { public PassLowBar() { - if (Constants.Auton.isUsingTimeToPassDefense) { - addSequential(new DriveForTime(Constants.Auton.passLowBarTime, - Constants.Auton.passLowBarSpeed)); + if (Constants.Auton.IS_USING_TIME) { + addSequential(new DriveForTime(Constants.Auton.PASS_LOW_BAR_TIMEpassLowBarTime, + Constants.Auton.PASS_LOW_BAR_SPEED)); } else { addSequential(new DriveDistance( - Constants.Auton.passLowBarDistance, + Constants.Auton.PASS_LOW_BAR_DIST, Constants.DriveTrain.PASS_DEFENSE_TIMEOUT)); } }