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