1 package org
.usfirst
.frc
.team3501
.robot
.subsystems
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
5 import com
.ctre
.CANTalon
;
7 import edu
.wpi
.first
.wpilibj
.command
.Subsystem
;
9 public class Shooter
extends Subsystem
{
10 private static Shooter shooter
;
11 private final CANTalon flyWheel
, indexWheel
;
13 public static final double DEFAULT_INDEXING_SPEED
= 0;
14 public static final double DEFAULT_SHOOTING_SPEED
= 0;
15 public static double CURRENT_SHOOTING_SPEED
;
17 public static final double SHOOTING_SPEED_INCREMENT
= 0;
20 flyWheel
= new CANTalon(Constants
.Shooter
.FLY_WHEEL
);
21 indexWheel
= new CANTalon(Constants
.Shooter
.INDEX_WHEEL
);
26 * Returns shooter object
28 * @return Shooter object
30 public static Shooter
getShooter() {
31 if (shooter
== null) {
32 shooter
= new Shooter();
38 * Sets fly wheel motor value to input.
41 * motor value from -1 to 1(fastest forward)
43 public void setFlyWheelMotorVal(final double val
) {
48 * Stops fly wheel motor.
50 public void stopFlyWheel() {
55 * Sets index wheel motor value to input.
58 * motor value from -1 to 1(fastest forward)
60 public void setIndexWheelMotorVal(final double val
) {
65 * Stops index wheel motor.
67 public void stopIndexWheel() {
72 protected void initDefaultCommand() {