Implement stopFlyWheel and stopIndexWheel
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / StopIndexWheel.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 index wheel. Do not call unless the trigger button has
9 * been released.
10 *
11 * @author Shaina
12 */
13 public class StopIndexWheel extends Command {
14 /**
15 * This command stops the index wheel.
16 */
17 public StopIndexWheel() {
18
19 }
20
21 // Called just before this Command runs the first time
22 @Override
23 protected void initialize() {
24 }
25
26 // Called repeatedly when this Command is scheduled to run
27 @Override
28 protected void execute() {
29 }
30
31 // Called once after isFinished returns true
32 @Override
33 protected void end() {
34 Robot.getShooter().stopIndexWheel();
35 }
36
37 // Called when another command which requires one or more of the same
38 // subsystems is scheduled to run
39 @Override
40 protected void interrupted() {
41 }
42
43 @Override
44 protected boolean isFinished() {
45 return true;
46 }
47
48 }