1 package org
.usfirst
.frc
.team3501
.robot
.commands
.defensearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * This command is intended to be run from OI using button.whileHeld(...).
9 * It raises the defenseArm continually while the button is being held down.
13 public class RaiseDefenseArmContinuous
extends Command
{
17 public RaiseDefenseArmContinuous(double speed
) {
18 requires(Robot
.defenseArm
);
23 protected void initialize() {
24 Robot
.defenseArm
.setArmSpeed(speed
);
28 protected void execute() {
32 protected boolean isFinished() {
37 protected void end() {
38 Robot
.defenseArm
.setArmSpeed(0);
42 protected void interrupted() {