Delete speed variable, initialize intakeWheel, delete: RunIntake, RunIntakeContinuous...
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / Intake.java
CommitLineData
0ceab9a4
M
1package org.usfirst.frc.team3501.robot.subsystems;
2
c9eb0d1c
AD
3import org.usfirst.frc.team3501.robot.Constants;
4
dab6e7d6
AD
5import com.ctre.CANTalon;
6
0ceab9a4
M
7import edu.wpi.first.wpilibj.command.Subsystem;
8
dab6e7d6 9/**
0ceab9a4 10 * @author Meeta
0ceab9a4
M
11 */
12public class Intake extends Subsystem {
dab6e7d6 13 public static Intake intake = null;
dab6e7d6 14 private CANTalon intakeWheel;
c1aabfdd 15 public static final double INTAKE_SPEED = 0;
0ceab9a4 16
dab6e7d6
AD
17 // create speed of intake whee
18 public Intake() {
c9eb0d1c 19 intakeWheel = new CANTalon(Constants.Intake.INTAKE_ROLLER_PORT);
0ceab9a4
M
20 }
21
dab6e7d6
AD
22 public static Intake getIntake() {
23 if (intake == null) {
24 intake = new Intake();
25 }
26 return intake;
0ceab9a4
M
27 }
28
29 @Override
30 protected void initDefaultCommand() {
0ceab9a4
M
31
32 }
33
dab6e7d6 34 public void setSpeed(double speed) {
c9eb0d1c 35 intakeWheel.set(speed);
dab6e7d6
AD
36 }
37
0ceab9a4 38}