Commit | Line | Data |
---|---|---|
898ac295 LM |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
f19a94ad LM |
3 | import org.usfirst.frc.team3501.robot.Robot; |
4 | ||
898ac295 LM |
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() { | |
f19a94ad LM |
14 | if (Robot.photogate.isBallPresent()) |
15 | Robot.intakeArm.outputBall(); | |
898ac295 LM |
16 | } |
17 | ||
18 | @Override | |
19 | protected void execute() { | |
898ac295 LM |
20 | } |
21 | ||
22 | @Override | |
23 | protected boolean isFinished() { | |
f19a94ad | 24 | return !Robot.photogate.isBallPresent(); |
898ac295 LM |
25 | } |
26 | ||
27 | @Override | |
28 | protected void end() { | |
29 | ||
30 | } | |
31 | ||
32 | @Override | |
33 | protected void interrupted() { | |
34 | ||
35 | } | |
36 | ||
37 | } |