add require statements
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / ExpelBall.java
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 requires(Robot.intakeArm);
11 }
12
13 @Override
14 protected void initialize() {
15 if (Robot.photogate.isBallPresent())
16 Robot.intakeArm.outputBall();
17 }
18
19 @Override
20 protected void execute() {
21 }
22
23 @Override
24 protected boolean isFinished() {
25 return !Robot.photogate.isBallPresent();
26 }
27
28 @Override
29 protected void end() {
30
31 }
32
33 @Override
34 protected void interrupted() {
35
36 }
37
38 }