| 1 | package org.usfirst.frc.team3501.robot.commands.intakearm; |
| 2 | |
| 3 | import org.usfirst.frc.team3501.robot.Robot; |
| 4 | |
| 5 | import edu.wpi.first.wpilibj.command.Command; |
| 6 | |
| 7 | /*** |
| 8 | * This command will take a boulder into the robot if there is not a boulder |
| 9 | * present inside already. |
| 10 | * |
| 11 | * pre-condition: Intake arm must be at correct height and a boulder is not |
| 12 | * present inside the robot. |
| 13 | * |
| 14 | * post-condition: A boulder is taken in from the field outside of the robot |
| 15 | * into the robot. |
| 16 | * |
| 17 | * @author Lauren and Niyati |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | public class StopIntake extends Command { |
| 22 | |
| 23 | public StopIntake() { |
| 24 | requires(Robot.intakeArm); |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | protected void initialize() { |
| 29 | Robot.intakeArm.stopRollers(); |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | protected void execute() { |
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | protected boolean isFinished() { |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | protected void end() { |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | protected void interrupted() { |
| 47 | } |
| 48 | |
| 49 | } |