Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
9728080f | 2 | |
7988f380 | 3 | import org.usfirst.frc.team3501.robot.Constants.Shooter; |
376b38ae | 4 | |
071ab315 KZ |
5 | import edu.wpi.first.wpilibj.command.CommandGroup; |
6 | import edu.wpi.first.wpilibj.command.WaitCommand; | |
376b38ae | 7 | |
071ab315 | 8 | public class Shoot extends CommandGroup { |
376b38ae | 9 | |
e4fbab02 HD |
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 | */ | |
071ab315 | 17 | public Shoot() { |
f8bfcc62 | 18 | addSequential(new FireCatapult()); |
7988f380 | 19 | addSequential(new WaitCommand(Shooter.WAIT_TIME)); |
f8bfcc62 | 20 | addSequential(new ResetCatapult()); |
071ab315 | 21 | } |
376b38ae | 22 | } |