Change isFinished return value to true and add 'requires' command
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / StopIntake.java
index 54e8a603b5aff28bb1b23e8871f921d3b62a0c6d..52280404754d0667d037f70c9436229420708dab 100644 (file)
@@ -1,5 +1,6 @@
 package org.usfirst.frc.team3501.robot.commands.intake;
 
+import org.usfirst.frc.team3501.robot.Robot;
 import org.usfirst.frc.team3501.robot.subsystems.Intake;
 
 import edu.wpi.first.wpilibj.command.Command;
@@ -12,7 +13,7 @@ import edu.wpi.first.wpilibj.command.Command;
  */
 public class StopIntake extends Command {
   public StopIntake() {
-
+    requires(Robot.getIntake());
   }
 
   // Called just before this Command runs the first time
@@ -41,7 +42,7 @@ public class StopIntake extends Command {
   @Override
   protected boolean isFinished() {
     // TODO Auto-generated method stub
-    return false;
+    return true;
   }
 
 }