Commit | Line | Data |
---|---|---|
4e0d6389 LM |
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 ToggleBallRollerExpel extends Command { | |
4e0d6389 LM |
8 | |
9 | public ToggleBallRollerExpel() { | |
10 | } | |
11 | ||
12 | @Override | |
13 | protected void initialize() { | |
2b65c91d LM |
14 | if (Robot.intakeArm.areRollersRolling()) |
15 | Robot.intakeArm.stopRollers(); | |
16 | else | |
89a4a089 | 17 | Robot.intakeArm.outputBall(); |
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 | } |