Fix syntax errors in master got in the last merge
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassLowBar.java
index 8f35a25cd393b9275d317cec4ac5f67a0101e557..be002264643edb554842d88bba54b94137f24b3b 100644 (file)
@@ -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_TIME,
+          Constants.Auton.PASS_LOW_BAR_SPEED));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.Auton.passLowBarDistance,
+          Constants.Auton.PASS_LOW_BAR_DIST,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }
   }