Implement stopFlyWheel and stopIndexWheel
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / StopIndexWheel.java
CommitLineData
809609c9 1package org.usfirst.frc.team3501.robot.commands.shooter;
2
f3db582d 3import org.usfirst.frc.team3501.robot.Robot;
4
809609c9 5import edu.wpi.first.wpilibj.command.Command;
6
7/**
27d2386f 8 * This command stops the index wheel. Do not call unless the trigger button has
9 * been released.
973f0ac4 10 *
11 * @author Shaina
809609c9 12 */
13public class StopIndexWheel extends Command {
b7ef589a 14 /**
15 * This command stops the index wheel.
16 */
973f0ac4 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() {
f3db582d 34 Robot.getShooter().stopIndexWheel();
973f0ac4 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() {
f3db582d 45 return true;
973f0ac4 46 }
809609c9 47
48}