change isUsingTime to final and delete the method that toggles it in drivetrain
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRockWall.java
index dae5e038ad86b3b6baa8a9c23b63cc352cc2ebd6..55646b5a94254c695f5a0ebd97ad48886ba275aa 100755 (executable)
@@ -25,13 +25,13 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 public class PassRockWall extends CommandGroup {
 
   public PassRockWall() {
-    if (Constants.Auton.isUsingTime) {
-      addSequential(new DriveForTime(Constants.Auton.passRockWallTime,
+    if (Constants.Auton.IS_USING_TIME) {
+      addSequential(new DriveForTime(Constants.Auton.PASS_ROCK_WALL_TIME,
           Constants.Auton.passRockWallSpeed));
     }
     else {
       addSequential(new DriveDistance(
-          Constants.Auton.passRockWallDistance,
+          Constants.Auton.PASS_ROCK_WALL_DIST,
           Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
     }