X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FStopShooter.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FStopShooter.java;h=7488a49375dfd7728d99b69361a018d7f665102b;hp=0000000000000000000000000000000000000000;hb=1e41dfe4e5913508b81298ba64e6d879b6739f39;hpb=93241e25b57f6a7e7f64207682246957cd47e353 diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopShooter.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopShooter.java new file mode 100644 index 00000000..7488a493 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopShooter.java @@ -0,0 +1,38 @@ +package org.usfirst.frc.team3501.robot.commands.shooter; + +import org.usfirst.frc.team3501.robot.Robot; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class StopShooter extends Command { + + public StopShooter() { + + } + + // default shooter speed is used to shoot when in front of the batter + @Override + protected void initialize() { + Robot.shooter.setSpeed(0); + } + + @Override + protected void execute() { + } + + @Override + protected boolean isFinished() { + return true; + } + + @Override + protected void end() { + } + + @Override + protected void interrupted() { + } +}