Change isFinished return value to true and add 'requires' command
authorArunima DIvya <adivya822@student.fuhsd.org>
Tue, 24 Jan 2017 03:50:08 +0000 (19:50 -0800)
committerArunima DIvya <adivya822@student.fuhsd.org>
Thu, 26 Jan 2017 04:14:06 +0000 (20:14 -0800)
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;
   }
 
 }