f0416b4eb11a64f34258dabc3ff5f9dd389c861e
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / Shoot.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import org.usfirst.frc.team3501.robot.Constants;
4
5 import edu.wpi.first.wpilibj.command.CommandGroup;
6 import edu.wpi.first.wpilibj.command.WaitCommand;
7
8 public class Shoot extends CommandGroup {
9
10 public boolean usePhotogate;
11
12 /**
13 * Fires catapult, then resets after a pause. If robot is set to use photogate
14 * and no ball is detected, nothing happens.
15 *
16 * Precondition: catapult is in reset position, and ball is loaded in
17 * catapult.
18 */
19 public Shoot() {
20 addSequential(new FireCatapult());
21 addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME));
22 addSequential(new ResetCatapult());
23 }
24 }