refactor isUsingTimeToPassDefense to isUsingTime
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRampart.java
index 95bc2a233332c036472c66540558d9c70d9fb37f..e5af033e9a85272f118ee7925e360a6b2b6d5b51 100755 (executable)
@@ -26,13 +26,13 @@ public class PassRampart extends CommandGroup {
 
   public PassRampart() {
 
-    if (Constants.DeadReckoning.isDeadReckoning) {
-      addSequential(new DriveForTime(Constants.DeadReckoning.passRockWallTime,
-          Constants.DeadReckoning.passRockWallSpeed));
+    if (Constants.Auton.isUsingTime) {
+      addSequential(new DriveForTime(Constants.Auton.passRockWallTime,
+          Constants.Auton.passRockWallSpeed));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.DeadReckoning.passRampartDistance,
+          Constants.Auton.passRampartDistance,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }