809609c9 |
1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
2 | |
f3db582d |
3 | import org.usfirst.frc.team3501.robot.Robot; |
4 | |
809609c9 |
5 | import edu.wpi.first.wpilibj.command.Command; |
6 | |
05a85c82 |
7 | /** |
27d2386f |
8 | * This command stops the fly wheel. Do not call unless the trigger button has |
9 | * been released. |
973f0ac4 |
10 | * |
b7ef589a |
11 | * |
973f0ac4 |
12 | * @author Shaina |
05a85c82 |
13 | */ |
809609c9 |
14 | public class StopFlyWheel extends Command { |
b7ef589a |
15 | /** |
16 | * This command stops the fly wheel. |
17 | */ |
973f0ac4 |
18 | public StopFlyWheel() { |
19 | |
20 | } |
21 | |
22 | // Called just before this Command runs the first time |
23 | @Override |
24 | protected void initialize() { |
25 | } |
26 | |
27 | // Called repeatedly when this Command is scheduled to run |
28 | @Override |
29 | protected void execute() { |
30 | } |
31 | |
32 | // Called once after isFinished returns true |
33 | @Override |
34 | protected void end() { |
f3db582d |
35 | Robot.getShooter().stopFlyWheel(); |
973f0ac4 |
36 | } |
37 | |
38 | // Called when another command which requires one or more of the same |
39 | // subsystems is scheduled to run |
40 | @Override |
41 | protected void interrupted() { |
42 | } |
43 | |
44 | @Override |
45 | protected boolean isFinished() { |
f3db582d |
46 | return true; |
973f0ac4 |
47 | } |
809609c9 |
48 | |
49 | } |