be0ea21988154d10264ba47bd7debc23accd30a5
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 set the winch motor to a specified speed.
10 * pre-condition: This command must be run by a button in OI with method
13 * post-condition: winch motor set to a specified speed.
15 * @author Meryem and Avi
19 public class SetWinchSpeed
extends Command
{
22 public SetWinchSpeed(double speed
) {
23 requires(Robot
.scaler
);
28 protected void initialize() {
29 Robot
.scaler
.runWinch(winchUpSpeed
);
33 protected void execute() {
37 protected boolean isFinished() {
42 protected void end() {
46 protected void interrupted() {