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