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
;
10 * Intakes the balls into ball container.
14 public class Intake
extends Subsystem
{
15 public static Intake intake
= null;
16 private CANTalon intakeWheel
;
17 public static final double INTAKE_SPEED
= 0;
20 intakeWheel
= new CANTalon(Constants
.Intake
.INTAKE_ROLLER_PORT
);
24 * It gets the intake instance, and if intake has not been initialized, then
25 * it will be initialized.
29 public static Intake
getIntake() {
31 intake
= new Intake();
37 protected void initDefaultCommand() {
42 * Sets speed of intake wheel to input speed
47 public void setSpeed(double speed
) {
48 intakeWheel
.set(speed
);