| 1 | package org.usfirst.frc.team3501.robot.commands; |
| 2 | |
| 3 | import org.usfirst.frc.team3501.robot.Robot; |
| 4 | |
| 5 | import edu.wpi.first.wpilibj.command.Command; |
| 6 | |
| 7 | public class ExpelBall extends Command { |
| 8 | |
| 9 | public ExpelBall() { |
| 10 | } |
| 11 | |
| 12 | @Override |
| 13 | protected void initialize() { |
| 14 | if (Robot.photogate.isBallPresent()) |
| 15 | Robot.intakeArm.outputBall(); |
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | protected void execute() { |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | protected boolean isFinished() { |
| 24 | return !Robot.photogate.isBallPresent(); |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | protected void end() { |
| 29 | |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | protected void interrupted() { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | } |