fill in code
authorArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 04:03:43 +0000 (20:03 -0800)
committerArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 04:33:24 +0000 (20:33 -0800)
src/org/usfirst/frc/team3501/robot/commands/intake/ReverseIntakeContinuous.java

index b84a1920b9cbf90a3509c108522fb1e8a1169fb5..f387112ef612a0cf3327dbe5e1e3c89a018c89b7 100644 (file)
@@ -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();
   }
 }