cbce00577b05d1b952d8cf4d0b1485f2e65c8b74
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / StopFlyWheel.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import org.usfirst.frc.team3501.robot.Robot;
4
5 import edu.wpi.first.wpilibj.command.Command;
6
7 /**
8 * This command stops the fly wheel. Do not call unless the trigger button has
9 * been released.
10 *
11 *
12 * @author Shaina
13 */
14 public class StopFlyWheel extends Command {
15 /**
16 * This command stops the fly wheel.
17 */
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() {
35 Robot.getShooter().stopFlyWheel();
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() {
46 return true;
47 }
48
49 }