Moderately streamline imports of constants
[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.Shooter;
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 /**
11 * Fires catapult, then resets after a pause. If robot is set to use photogate
12 * and no ball is detected, nothing happens.
13 *
14 * Precondition: catapult is in reset position, and ball is loaded in
15 * catapult.
16 */
17 public Shoot() {
18 addSequential(new FireCatapult());
19 addSequential(new WaitCommand(Shooter.WAIT_TIME));
20 addSequential(new ResetCatapult());
21 }
22 }