Delete copies of methods, and change initialize code in runIntakeContinuous and runRe...
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / ReverseIntakeContinuous.java
index b84a1920b9cbf90a3509c108522fb1e8a1169fb5..a75a4bb28b4b665596441e1da874f895876ef67c 100644 (file)
@@ -23,6 +23,7 @@ public class ReverseIntakeContinuous extends Command {
   // Called repeatedly when this Command is scheduled to run
   @Override
   protected void execute() {
+    Robot.getIntake().runReverseIntake();
   }
 
   // Make this return true when this Command no longer needs to run execute()
@@ -34,11 +35,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();
   }
 }