Finish IntakeBall command
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / IntakeBall.java
CommitLineData
898ac295
LM
1package org.usfirst.frc.team3501.robot.commands;
2
2a4a0ca5 3import org.usfirst.frc.team3501.robot.Robot;
4
898ac295
LM
5import edu.wpi.first.wpilibj.command.Command;
6
7public class IntakeBall extends Command {
8
9 public IntakeBall() {
10 }
11
12 @Override
13 protected void initialize() {
2a4a0ca5 14 if (!Robot.photogate.isBallPresent())
15 Robot.intakeArm.intakeBall();
898ac295
LM
16
17 }
18
19 @Override
20 protected void execute() {
21
22 }
23
24 @Override
25 protected boolean isFinished() {
2a4a0ca5 26 return Robot.photogate.isBallPresent();
898ac295
LM
27 }
28
29 @Override
30 protected void end() {
31
32 }
33
34 @Override
35 protected void interrupted() {
36
37 }
38
39}