Correct ToggleBallRollerIntake command and remove unnecessary lines
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / ToggleBallRollerIntake.java
CommitLineData
4e0d6389
LM
1package org.usfirst.frc.team3501.robot.commands;
2
5d8fe6b4 3import org.usfirst.frc.team3501.robot.Robot;
4
4e0d6389
LM
5import edu.wpi.first.wpilibj.command.Command;
6
7public class ToggleBallRollerIntake extends Command {
4e0d6389
LM
8
9 public ToggleBallRollerIntake() {
10 }
11
12 @Override
13 protected void initialize() {
6538050b 14 if (Robot.intakeArm.areRollersRolling()) {
5d8fe6b4 15 Robot.intakeArm.stopRollers();
16 } else
17 Robot.intakeArm.intakeBall();
4e0d6389
LM
18 }
19
20 @Override
21 protected void execute() {
22
23 }
24
25 @Override
26 protected boolean isFinished() {
27 return true;
28 }
29
30 @Override
31 protected void end() {
32
33 }
34
35 @Override
36 protected void interrupted() {
37
38 }
39
40}