Fix ports and unusuable code to make shooter test work
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / Shoot.java
index ec5a11d59e9feacbb9ad8930699ad50cd3aefef9..df25ac13dcdcd96a145c19ae3924d7d15de86547 100755 (executable)
@@ -1,30 +1,28 @@
 package org.usfirst.frc.team3501.robot.commands.shooter;
 
-import edu.wpi.first.wpilibj.command.Command;
-
-public class Shoot extends Command {
-
-       public Shoot() {
-       }
-
-       @Override
-       protected void initialize() {
-       }
-
-       @Override
-       protected void execute() {
-       }
-
-       @Override
-       protected boolean isFinished() {
-               return false;
-       }
-
-       @Override
-       protected void end() {
-       }
-
-       @Override
-       protected void interrupted() {
-       }
+import edu.wpi.first.wpilibj.command.CommandGroup;
+import edu.wpi.first.wpilibj.command.WaitCommand;
+
+public class Shoot extends CommandGroup {
+
+  public boolean usePhotogate;
+
+  public Shoot() {
+    addSequential(new StartShooter());
+    addSequential(new WaitCommand(3.0));
+    // if (Robot.shooter.usePhotogate()) {
+    // if (Robot.shooter.isBallInside()) {
+    // addSequential(new ExtendPunch());
+    // addSequential(new WaitCommand(5.0));
+    // addSequential(new RetractPunch());
+    // addSequential(new StopShooter());
+    // }
+    // } else {
+    addSequential(new ExtendPunch());
+    addSequential(new WaitCommand(5.0));
+    addSequential(new RetractPunch());
+    addSequential(new StopShooter());
+    // }
+
+  }
 }