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
{
13 protected void initialize() {
14 if (!Robot
.photogate
.isBallPresent())
15 Robot
.intakeArm
.intakeBall();
20 protected void execute() {
25 protected boolean isFinished() {
26 return Robot
.photogate
.isBallPresent();
30 protected void end() {
35 protected void interrupted() {