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 ExpelBall
extends Command
{
10 requires(Robot
.intakeArm
);
14 protected void initialize() {
15 if (Robot
.photogate
.isBallPresent())
16 Robot
.intakeArm
.outputBall();
20 protected void execute() {
24 protected boolean isFinished() {
25 return !Robot
.photogate
.isBallPresent();
29 protected void end() {
34 protected void interrupted() {