Fix ports and unusuable code to make shooter test work
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / shooter / StartShooter.java
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StartShooter.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StartShooter.java
new file mode 100644 (file)
index 0000000..45e1263
--- /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 StartShooter extends Command {
+
+  public StartShooter() {
+
+  }
+
+  // default shooter speed is used to shoot when in front of the batter
+  @Override
+  protected void initialize() {
+    Robot.shooter.setSpeed(0.5);
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+  }
+}