Change shooter to function off of two pistons, remove punch, shooter motors, and...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / FireCatapult.java
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/FireCatapult.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/FireCatapult.java
new file mode 100644 (file)
index 0000000..065f25a
--- /dev/null
@@ -0,0 +1,38 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class FireCatapult extends Command {
+
+  public FireCatapult() {
+    requires(Robot.shooter);
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.shooter.fireCatapult();
+  }
+
+  @Override
+  protected void execute() {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+
+  }
+
+  @Override
+  protected void interrupted() {
+
+  }
+
+}