implement singleton pattern for climber and shooter subsystems
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Shooter.java
CommitLineData
79ba119a 1package org.usfirst.frc.team3501.robot.subsystems;
2
3public class Shooter {
079a8cb6 4 private static Shooter shooter;
79ba119a 5
079a8cb6 6 private Shooter() {
41dfad94 7
079a8cb6 8 }
41dfad94 9
079a8cb6
CZ
10 public static Shooter getShooter() {
11 if (shooter == null) {
12 shooter = new Shooter();
13 }
14 return shooter;
15 }
41dfad94 16
079a8cb6
CZ
17 /**
18 * Stops fly wheel
19 */
20 public void stopFlywheel() {
41dfad94 21
079a8cb6 22 }
41dfad94 23
079a8cb6
CZ
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) {
41dfad94 33
079a8cb6 34 }
41dfad94 35
079a8cb6
CZ
36 /**
37 * Stops index wheel
38 */
39 public void stopIndexWheel() {
41dfad94 40
079a8cb6 41 }
41dfad94 42
079a8cb6
CZ
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) {
41dfad94 52
079a8cb6 53 }
41dfad94 54
079a8cb6
CZ
55 /**
56 * Runs fly wheel continuously until ________
57 */
58 public void runFlywheelContinuous() {
41dfad94 59
079a8cb6
CZ
60 }
61
62 /**
63 * Runs index wheel continuously until ________
64 */
65 public void runIndexWheelContinuous() {
66
67 }
79ba119a 68}