63ff149f7d09538480796a16f793023763fb4bd8
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 final double STOP_SPEED
= 0.0;
22 private double winchUpSpeed
;
24 public RunWinchContinuous(double speed
) {
25 requires(Robot
.scaler
);
30 protected void initialize() {
31 Robot
.scaler
.runWinch(winchUpSpeed
);
35 protected void execute() {
39 protected boolean isFinished() {
44 protected void end() {
45 Robot
.scaler
.runWinch(STOP_SPEED
);
49 protected void interrupted() {