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