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_SHOOTING_SPEED
= 0;
14 public static double CURRENT_SHOOTING_SPEED
;
16 public static final double SHOOTING_SPEED_INCREMENT
= 0;
19 flyWheel
= new CANTalon(Constants
.Shooter
.FLY_WHEEL
);
20 indexWheel
= new CANTalon(Constants
.Shooter
.INDEX_WHEEL
);
25 * Returns shooter object
27 * @return Shooter object
29 public static Shooter
getShooter() {
30 if (shooter
== null) {
31 shooter
= new Shooter();
37 * Sets fly wheel motor value to input.
40 * motor value from -1 to 1(fastest forward)
42 public void setFlyWheelMotorVal(final double val
) {
47 * Stops fly wheel motor.
49 public void stopFlyWheel() {
54 * Sets index wheel motor value to input.
57 * motor value from -1 to 1(fastest forward)
59 public void setIndexWheelMotorVal(final double val
) {
64 * Stops index wheel motor.
66 public void stopIndexWheel() {
71 protected void initDefaultCommand() {