de5dc6f4a76cd76cba81515a74fe5f9794619499
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
;
12 public class Intake
extends Subsystem
{
13 public static Intake intake
= null;
14 private CANTalon intakeWheel
;
15 public static final double INTAKE_SPEED
= 0;
18 intakeWheel
= new CANTalon(Constants
.Intake
.INTAKE_ROLLER_PORT
);
22 * It gets the intake instance, and if intake has not been initialized, then
23 * it will be initialized.
27 public static Intake
getIntake() {
29 intake
= new Intake();
35 protected void initDefaultCommand() {
40 * Sets speed of intake wheel to input speed
45 public void setSpeed(double speed
) {
46 intakeWheel
.set(speed
);