use wait command and move if statements from shoot at high goal to resetcatapult
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / ShootAtHighGoal.java
index 70817273d28a4fedf5bd3c17312b364a007a06ee..6d15cde8362194c3ca7ef19763a6a3f49929a827 100755 (executable)
@@ -14,6 +14,7 @@ import edu.wpi.first.wpilibj.command.WaitCommand;
  * post-conditions: catapult is retracted, intake is extended
  */
 public class ShootAtHighGoal extends CommandGroup {
+  private static final double WAIT_SECONDS = 0.4;
 
   public ShootAtHighGoal() {
     // make sure catapult is down
@@ -29,7 +30,7 @@ public class ShootAtHighGoal extends CommandGroup {
     addSequential(new MoveIntakeArm(IntakeArm.EXTEND));
 
     // wait a bit
-    addSequential(new WaitCommand(1.0));
+    addSequential(new WaitCommand(WAIT_SECONDS));
 
     // retract catapult pistons
     addSequential(new ResetCatapult());