Commit | Line | Data |
---|---|---|
763ccd44 M |
1 | package org.usfirst.frc.team3501.robot.commands.intake; |
2 | ||
dab6e7d6 AD |
3 | import org.usfirst.frc.team3501.robot.subsystems.Intake; |
4 | ||
763ccd44 M |
5 | import edu.wpi.first.wpilibj.command.Command; |
6 | ||
7 | /** | |
8 | * Stops running the intake. | |
9 | * | |
10 | * @author Meeta | |
11 | * | |
12 | */ | |
13 | public class StopIntake extends Command { | |
14 | public StopIntake() { | |
15 | ||
16 | } | |
17 | ||
18 | // Called just before this Command runs the first time | |
19 | @Override | |
20 | protected void initialize() { | |
21 | } | |
22 | ||
23 | // Called repeatedly when this Command is scheduled to run | |
24 | @Override | |
25 | protected void execute() { | |
26 | } | |
27 | ||
28 | // Called once after isFinished returns true | |
29 | @Override | |
30 | protected void end() { | |
dab6e7d6 | 31 | Intake.intake.setSpeed(0); |
763ccd44 M |
32 | } |
33 | ||
34 | // Called when another command which requires one or more of the same | |
35 | // subsystems is scheduled to run | |
36 | @Override | |
37 | protected void interrupted() { | |
dab6e7d6 | 38 | end(); |
763ccd44 M |
39 | } |
40 | ||
41 | @Override | |
42 | protected boolean isFinished() { | |
43 | // TODO Auto-generated method stub | |
44 | return false; | |
45 | } | |
46 | ||
47 | } |