573bd9048cdef6fbabb75ed98b343494cd2f6bd4
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
{
13 protected void initialize() {
14 if (Robot
.photogate
.isBallPresent())
15 Robot
.intakeArm
.outputBall();
19 protected void execute() {
23 protected boolean isFinished() {
24 return !Robot
.photogate
.isBallPresent();
28 protected void end() {
33 protected void interrupted() {