Purge code of all unused fields/classes. Only testing code.
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / Shoot.java
index 95270bd7dbe847b08a1a391989318b8074b52436..f0416b4eb11a64f34258dabc3ff5f9dd389c861e 100755 (executable)
@@ -1,19 +1,24 @@
 package org.usfirst.frc.team3501.robot.commands.shooter;
 
-import org.usfirst.frc.team3501.robot.commands.auton.AimAndAlign;
+import org.usfirst.frc.team3501.robot.Constants;
 
 import edu.wpi.first.wpilibj.command.CommandGroup;
 import edu.wpi.first.wpilibj.command.WaitCommand;
 
 public class Shoot extends CommandGroup {
 
+  public boolean usePhotogate;
+
+  /**
+   * Fires catapult, then resets after a pause. If robot is set to use photogate
+   * and no ball is detected, nothing happens.
+   * 
+   * Precondition: catapult is in reset position, and ball is loaded in
+   * catapult.
+   */
   public Shoot() {
-    addSequential(new AimAndAlign());
-    addSequential(new WaitCommand(3.0));
-    addSequential(new runShooter());
-    addSequential(new WaitCommand(3.0));
-    addSequential(new ExtendPunch());
-    addSequential(new WaitCommand(5.0));
-    addSequential(new RetractPunch());
+    addSequential(new FireCatapult());
+    addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME));
+    addSequential(new ResetCatapult());
   }
 }