304c983aac6a925666a72e322bfb31b1eaad4115
1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * This command will run the winch motor continuously until the button
9 * tirggering it is released.
11 * pre-condition: This command must be run by a button in OI with method
12 * whileHeld(). The robot must be attached to the tower rung.
14 * post-condition: winch motor set to a specified speed.
20 public class RunWinchContinuous
extends Command
{
21 private double winchUpSpeed
;
23 public RunWinchContinuous(double speed
) {
24 requires(Robot
.scaler
);
29 protected void initialize() {
30 Robot
.scaler
.runWinch(winchUpSpeed
);
34 protected void execute() {
38 protected boolean isFinished() {
43 protected void end() {
44 Robot
.scaler
.stopWinch();
48 protected void interrupted() {