X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FReverseFlyWheelContinuous.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FReverseFlyWheelContinuous.java;h=dd4f149bd3715c063bb12c0436047235b543391f;hp=0000000000000000000000000000000000000000;hb=fc01fb0fb74d31a0818c69d0306253deb4236c58;hpb=cb8e86cb498c12dcf4e2b7a5916fc6f4926b77cf diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseFlyWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseFlyWheelContinuous.java new file mode 100644 index 0000000..dd4f149 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseFlyWheelContinuous.java @@ -0,0 +1,38 @@ +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; + +public class ReverseFlyWheelContinuous extends Command { + private Shooter shooter = Robot.getShooter(); + + public ReverseFlyWheelContinuous() { + } + + @Override + protected void initialize() { + } + + @Override + protected void execute() { + shooter.reverseFlyWheel(); + } + + @Override + protected boolean isFinished() { + return false; + } + + @Override + protected void end() { + shooter.stopFlyWheel(); + } + + @Override + protected void interrupted() { + end(); + } + +}