54e8a603b5aff28bb1b23e8871f921d3b62a0c6d
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / StopIntake.java
1 package org.usfirst.frc.team3501.robot.commands.intake;
2
3 import org.usfirst.frc.team3501.robot.subsystems.Intake;
4
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() {
31 Intake.intake.setSpeed(0);
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() {
38 end();
39 }
40
41 @Override
42 protected boolean isFinished() {
43 // TODO Auto-generated method stub
44 return false;
45 }
46
47 }