c90a08017d5bf010855c45de20aa0f3ced0989a9
1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * This command will take a boulder into the robot if there is not a boulder
9 * present inside already.
11 * pre-condition: A boulder is not present inside the robot.
13 * post-condition: A boulder is taken in from the field outside of the robot
16 * @author Lauren and Niyati
20 public class IntakeBall
extends Command
{
23 requires(Robot
.intakeArm
);
27 protected void initialize() {
28 if (!Robot
.photogate
.isBallPresent())
29 Robot
.intakeArm
.intakeBall();
34 protected void execute() {
39 protected boolean isFinished() {
40 return Robot
.photogate
.isBallPresent();
44 protected void end() {
45 Robot
.intakeArm
.stopRollers();
50 protected void interrupted() {