From: Arunima DIvya Date: Thu, 26 Jan 2017 04:03:43 +0000 (-0800) Subject: fill in code X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=5690f62930035364251465cc6af1e3bc79993bf9 fill in code --- 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(); } }