package org.usfirst.frc.team3501.robot.commands.intake;
+import org.usfirst.frc.team3501.robot.Robot;
+
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
@Override
protected void initialize() {
+ Robot.getIntake().stopIntake();
}
// Called repeatedly when this Command is scheduled to run
// subsystems is scheduled to run
@Override
protected void interrupted() {
+ end();
}
@Override
protected boolean isFinished() {
- // TODO Auto-generated method stub
- return false;
+ return true;
}
}