X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FStopFlyWheel.java;h=0d1bbe83cf212d0022ccba2f3a54091351b1b85e;hp=cbce00577b05d1b952d8cf4d0b1485f2e65c8b74;hb=f74d236db406193b851bff99e4daec7b7abf35e7;hpb=8275a069e1891bd27156dcd947a897519c42a3a3 diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java index cbce005..0d1bbe8 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.Shooter; import edu.wpi.first.wpilibj.command.Command; @@ -12,11 +13,13 @@ import edu.wpi.first.wpilibj.command.Command; * @author Shaina */ public class StopFlyWheel extends Command { + private Shooter shooter = Robot.getShooter(); + /** * This command stops the fly wheel. */ public StopFlyWheel() { - + requires(shooter); } // Called just before this Command runs the first time @@ -39,6 +42,7 @@ public class StopFlyWheel extends Command { // subsystems is scheduled to run @Override protected void interrupted() { + end(); } @Override