X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintake%2FReverseIntakeContinuous.java;h=f387112ef612a0cf3327dbe5e1e3c89a018c89b7;hp=b84a1920b9cbf90a3509c108522fb1e8a1169fb5;hb=5690f62930035364251465cc6af1e3bc79993bf9;hpb=9db1440b52497b7c1683ede379da726c1f79c47e diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java index b84a192..f387112 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java @@ -18,11 +18,14 @@ public class ReverseIntakeContinuous extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + Robot.getIntake().runReverseIntake(); + } // Called repeatedly when this Command is scheduled to run @Override protected void execute() { + } // Make this return true when this Command no longer needs to run execute() @@ -34,11 +37,13 @@ public class ReverseIntakeContinuous extends Command { // Called once after isFinished returns true @Override protected void end() { + Robot.getIntake().stopIntake(); } // Called when another command which requires one or more of the same // subsystems is scheduled to run @Override protected void interrupted() { + end(); } }