1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
.Shooter
;
5 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
6 import edu
.wpi
.first
.wpilibj
.command
.WaitCommand
;
8 public class Shoot
extends CommandGroup
{
11 * Fires catapult, then resets after a pause. If robot is set to use photogate
12 * and no ball is detected, nothing happens.
14 * Precondition: catapult is in reset position, and ball is loaded in
18 addSequential(new FireCatapult());
19 addSequential(new WaitCommand(Shooter
.WAIT_TIME
));
20 addSequential(new ResetCatapult());