Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
9728080f | 2 | |
e4fbab02 | 3 | import org.usfirst.frc.team3501.robot.Constants; |
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 | |
24850996 | 10 | public boolean usePhotogate; |
11 | ||
e4fbab02 HD |
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 | */ | |
071ab315 | 19 | public Shoot() { |
f8bfcc62 HD |
20 | addSequential(new FireCatapult()); |
21 | addSequential(new WaitCommand(Constants.Shooter.WAIT_TIME)); | |
22 | addSequential(new ResetCatapult()); | |
071ab315 | 23 | } |
376b38ae | 24 | } |