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