1 package org
.usfirst
.frc
.team3501
.robot
.commands
.doublejointeddefensearm
;
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 defenseWrist continually while the button is being held down.
14 public class RaiseDefenseWristContinuous
extends Command
{
18 public RaiseDefenseWristContinuous(double speed
) {
19 requires(Robot
.defenseArm
);
24 protected void initialize() {
25 Robot
.defenseArm
.setHandSpeed(speed
);
29 protected void execute() {
33 protected boolean isFinished() {
38 protected void end() {
39 Robot
.defenseArm
.setHandSpeed(0);
43 protected void interrupted() {