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; | |
0ceab9a4 | 14 | |
dab6e7d6 AD |
15 | // create speed of intake whee |
16 | public Intake() { | |
0ceab9a4 M |
17 | |
18 | } | |
19 | ||
dab6e7d6 AD |
20 | public static Intake getIntake() { |
21 | if (intake == null) { | |
22 | intake = new Intake(); | |
23 | } | |
24 | return intake; | |
0ceab9a4 M |
25 | } |
26 | ||
27 | @Override | |
28 | protected void initDefaultCommand() { | |
0ceab9a4 M |
29 | |
30 | } | |
31 | ||
dab6e7d6 AD |
32 | public void setSpeed(double speed) { |
33 | this.speed = speed; | |
34 | } | |
35 | ||
0ceab9a4 | 36 | } |