implement singleton pattern for climber and shooter subsystems
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Shooter.java
index 561448a81a11714fae9bf28e4b35cf0fdb5a8314..3df4f7d29516f40c3df7e7c2ce871ab10484e6d5 100644 (file)
@@ -1,5 +1,68 @@
 package org.usfirst.frc.team3501.robot.subsystems;
 
 public class Shooter {
+  private static Shooter shooter;
 
+  private Shooter() {
+
+  }
+
+  public static Shooter getShooter() {
+    if (shooter == null) {
+      shooter = new Shooter();
+    }
+    return shooter;
+  }
+
+  /**
+   * Stops fly wheel
+   */
+  public void stopFlywheel() {
+
+  }
+
+  /**
+   * Runs the fly wheel at a given speed in () for input time in seconds
+   *
+   * @param speed
+   *          in ()
+   * @param time
+   *          in seconds
+   */
+  public void runFlywheel(double speed, double time) {
+
+  }
+
+  /**
+   * Stops index wheel
+   */
+  public void stopIndexWheel() {
+
+  }
+
+  /**
+   * Runs index wheel at a given speed in () for input time in seconds
+   *
+   * @param speed
+   *          in ()
+   * @param time
+   *          in seconds
+   */
+  public void runIndexWheel(double speed, double time) {
+
+  }
+
+  /**
+   * Runs fly wheel continuously until ________
+   */
+  public void runFlywheelContinuous() {
+
+  }
+
+  /**
+   * Runs index wheel continuously until ________
+   */
+  public void runIndexWheelContinuous() {
+
+  }
 }