Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
9728080f | 2 | |
071ab315 KZ |
3 | import edu.wpi.first.wpilibj.command.CommandGroup; |
4 | import edu.wpi.first.wpilibj.command.WaitCommand; | |
376b38ae | 5 | |
071ab315 | 6 | public class Shoot extends CommandGroup { |
376b38ae | 7 | |
24850996 | 8 | public boolean usePhotogate; |
9 | ||
071ab315 | 10 | public Shoot() { |
1e41dfe4 | 11 | addSequential(new StartShooter()); |
071ab315 | 12 | addSequential(new WaitCommand(3.0)); |
1e41dfe4 HD |
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()); | |
19 | // } | |
20 | // } else { | |
21 | addSequential(new ExtendPunch()); | |
22 | addSequential(new WaitCommand(5.0)); | |
23 | addSequential(new RetractPunch()); | |
24 | addSequential(new StopShooter()); | |
25 | // } | |
24850996 | 26 | |
071ab315 | 27 | } |
376b38ae | 28 | } |