0d1bbe83cf212d0022ccba2f3a54091351b1b85e
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * This command stops the fly wheel. Do not call unless the trigger button has
15 public class StopFlyWheel
extends Command
{
16 private Shooter shooter
= Robot
.getShooter();
19 * This command stops the fly wheel.
21 public StopFlyWheel() {
25 // Called just before this Command runs the first time
27 protected void initialize() {
30 // Called repeatedly when this Command is scheduled to run
32 protected void execute() {
35 // Called once after isFinished returns true
37 protected void end() {
38 Robot
.getShooter().stopFlyWheel();
41 // Called when another command which requires one or more of the same
42 // subsystems is scheduled to run
44 protected void interrupted() {
49 protected boolean isFinished() {