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