1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
4 import edu
.wpi
.first
.wpilibj
.command
.WaitCommand
;
6 public class Shoot
extends CommandGroup
{
8 public boolean usePhotogate
;
11 addSequential(new StartShooter());
12 addSequential(new WaitCommand(3.0));
13 // if (Robot.shooter.usePhotogate()) {
14 // if (Robot.shooter.isBallInside()) {
15 // addSequential(new ExtendPunch());
16 // addSequential(new WaitCommand(5.0));
17 // addSequential(new RetractPunch());
18 // addSequential(new StopShooter());
21 addSequential(new ExtendPunch());
22 addSequential(new WaitCommand(5.0));
23 addSequential(new RetractPunch());
24 addSequential(new StopShooter());