From: Arunima DIvya Date: Tue, 24 Jan 2017 03:50:08 +0000 (-0800) Subject: Change isFinished return value to true and add 'requires' command X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=6973b275ea0ac7be03aa8463beeb5f2cdecc6101 Change isFinished return value to true and add 'requires' command --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java index 54e8a60..5228040 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java @@ -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; } }