X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FStopFlyWheel.java;h=0d1bbe83cf212d0022ccba2f3a54091351b1b85e;hb=f74d236db406193b851bff99e4daec7b7abf35e7;hp=53fc35c5ea543e80b04f9caf16baefa020fa51d1;hpb=b7ef589aaceec01ee3478523108784569f664be5;p=3501%2F2017steamworks 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 53fc35c..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,5 +1,8 @@ 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; /** @@ -10,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 @@ -30,18 +35,19 @@ public class StopFlyWheel extends Command { // Called once after isFinished returns true @Override protected void end() { + Robot.getShooter().stopFlyWheel(); } // Called when another command which requires one or more of the same // subsystems is scheduled to run @Override protected void interrupted() { + end(); } @Override protected boolean isFinished() { - // TODO Auto-generated method stub - return false; + return true; } }