change all the pass defense constants to finals
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRockWall.java
index 4b4a088a04b4e9b2f0c788208928fcc8355f07e2..73368d7e1793c62dfcf5ca99eee4e0c30b1b0a5b 100755 (executable)
@@ -25,13 +25,13 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 public class PassRockWall extends CommandGroup {
 
   public PassRockWall() {
-    if (Constants.DeadReckoning.isDeadReckoning) {
-      addSequential(new DriveForTime(Constants.DeadReckoning.passRockWallTime,
-          Constants.DeadReckoning.passRockWallSpeed));
+    if (Constants.Auton.isUsingTime) {
+      addSequential(new DriveForTime(Constants.Auton.PASS_ROCK_WALL_TIME,
+          Constants.Auton.passRockWallSpeed));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.DeadReckoning.passRockWallDistance,
+          Constants.Auton.PASS_ROCK_WALL_DIST,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }