implement singleton pattern for climber and shooter subsystems
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Shooter.java
1 package org.usfirst.frc.team3501.robot.subsystems;
2
3 public class Shooter {
4 private static Shooter shooter;
5
6 private Shooter() {
7
8 }
9
10 public static Shooter getShooter() {
11 if (shooter == null) {
12 shooter = new Shooter();
13 }
14 return shooter;
15 }
16
17 /**
18 * Stops fly wheel
19 */
20 public void stopFlywheel() {
21
22 }
23
24 /**
25 * Runs the fly wheel at a given speed in () for input time in seconds
26 *
27 * @param speed
28 * in ()
29 * @param time
30 * in seconds
31 */
32 public void runFlywheel(double speed, double time) {
33
34 }
35
36 /**
37 * Stops index wheel
38 */
39 public void stopIndexWheel() {
40
41 }
42
43 /**
44 * Runs index wheel at a given speed in () for input time in seconds
45 *
46 * @param speed
47 * in ()
48 * @param time
49 * in seconds
50 */
51 public void runIndexWheel(double speed, double time) {
52
53 }
54
55 /**
56 * Runs fly wheel continuously until ________
57 */
58 public void runFlywheelContinuous() {
59
60 }
61
62 /**
63 * Runs index wheel continuously until ________
64 */
65 public void runIndexWheelContinuous() {
66
67 }
68 }