1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 public class ToggleBallRollerIntake
extends Command
{
9 // Must be called with whileHeld in oi
10 public ToggleBallRollerIntake() {
11 requires(Robot
.intakeArm
);
15 protected void initialize() {
16 if (Robot
.intakeArm
.areRollersRolling()) {
17 Robot
.intakeArm
.stopRollers();
19 Robot
.intakeArm
.intakeBall();
23 protected void execute() {
28 protected boolean isFinished() {
33 protected void end() {
34 Robot
.intakeArm
.stopRollers();
38 protected void interrupted() {