Fix ports and unusuable code to make shooter test work
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / Shoot.java
CommitLineData
6bb7f8ac 1package org.usfirst.frc.team3501.robot.commands.shooter;
9728080f 2
071ab315
KZ
3import edu.wpi.first.wpilibj.command.CommandGroup;
4import edu.wpi.first.wpilibj.command.WaitCommand;
376b38ae 5
071ab315 6public 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}