Fix ports and unusuable code to make shooter test work
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / Shoot.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import edu.wpi.first.wpilibj.command.CommandGroup;
4 import edu.wpi.first.wpilibj.command.WaitCommand;
5
6 public class Shoot extends CommandGroup {
7
8 public boolean usePhotogate;
9
10 public Shoot() {
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());
19 // }
20 // } else {
21 addSequential(new ExtendPunch());
22 addSequential(new WaitCommand(5.0));
23 addSequential(new RetractPunch());
24 addSequential(new StopShooter());
25 // }
26
27 }
28 }