refactor isUsingTimeToPassDefense to isUsingTime
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassLowBar.java
index 49b085d09e6a8ecf11ecd47cd325da75dd5267b3..9ee3e6eeaff831dfadd8f25d2a639f528930e3cf 100644 (file)
@@ -25,13 +25,13 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 public class PassLowBar extends CommandGroup {
 
   public PassLowBar() {
-    if (Constants.DeadReckoning.isUsingTimeToPassDefense) {
-      addSequential(new DriveForTime(Constants.DeadReckoning.passLowBarTime,
-          Constants.DeadReckoning.passLowBarSpeed));
+    if (Constants.Auton.isUsingTime) {
+      addSequential(new DriveForTime(Constants.Auton.passLowBarTime,
+          Constants.Auton.passLowBarSpeed));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.DeadReckoning.passLowBarDistance,
+          Constants.Auton.passLowBarDistance,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }
   }