55039a5e2af158dfaeb0638b7f69df8489ebcfff
1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 public class IntakeBall
extends Command
{
10 requires(Robot
.intakeArm
);
14 protected void initialize() {
15 if (!Robot
.photogate
.isBallPresent())
16 Robot
.intakeArm
.intakeBall();
21 protected void execute() {
26 protected boolean isFinished() {
27 return Robot
.photogate
.isBallPresent();
31 protected void end() {
36 protected void interrupted() {