1 package org
.usfirst
.frc
.team3501
.robot
.subsystems
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
5 import edu
.wpi
.first
.wpilibj
.CANTalon
;
6 import edu
.wpi
.first
.wpilibj
.command
.Subsystem
;
8 public class Shooter
extends Subsystem
{
12 shooter
= new CANTalon(Constants
.Shooter
.PORT
);
15 public double getCurrentSpeed() {
19 public void setSpeed(double speed
) {
23 // Use negative # for decrement. Positive for increment.
24 public void changeSpeed(double change
) {
25 if (getCurrentSpeed() >= 1.0)
27 else if (getCurrentSpeed() <= -1.0)
30 double newSpeed
= getCurrentSpeed() + change
;
36 protected void initDefaultCommand() {