70a1dc945bc6f960f9b7c4b6d021f4f544dcf8f8
1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 * This command will continually roll the rollers of the intake arm in the
7 * outwards direction and stop the rollers once the command is canceled.
9 * pre-condition: This command must be called by a button with the method .whileHeld() in OI
11 * @author Lauren and Niyati
15 import edu
.wpi
.first
.wpilibj
.command
.Command
;
17 public class ToggleBallRollerExpel
extends Command
{
19 public ToggleBallRollerExpel() {
20 requires(Robot
.intakeArm
);
24 protected void initialize() {
25 Robot
.intakeArm
.outputBall();
29 protected void execute() {
34 protected boolean isFinished() {
39 protected void end() {
40 Robot
.intakeArm
.stopRollers();
44 protected void interrupted() {