change isUsingTime to final and delete the method that toggles it in drivetrain
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRoughTerrain.java
index ad5054dc02f912bae607774dd84e77e2708a5595..8e3ccba55d206bf2114122aaca380e3e96764374 100644 (file)
@@ -26,13 +26,13 @@ public class PassRoughTerrain extends CommandGroup {
 
   public PassRoughTerrain() {
 
-    if (Constants.DeadReckoning.isDeadReckoning) {
-      addSequential(new DriveForTime(Constants.DeadReckoning.passRockWallTime,
-          Constants.DeadReckoning.passRockWallSpeed));
+    if (Constants.Auton.IS_USING_TIME) {
+      addSequential(new DriveForTime(Constants.Auton.PASS_ROCK_WALL_TIME,
+          Constants.Auton.passRockWallSpeed));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.DeadReckoning.passRoughTerrainDistance,
+          Constants.Auton.PASS_ROUGH_TERRAIN_DIST,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }