1 package org
.usfirst
.frc
.team3501
.robot
.commands
.climber
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * Runs the winch continuously at a given motor value
10 * @author shivanighanta
13 public class RunWinchContinuous
extends Command
{
14 private double motorVal
;
16 public RunWinchContinuous(double motorVal
) {
17 this.motorVal
= motorVal
;
21 protected void initialize() {
22 Robot
.getClimber().setMotorValue(motorVal
);
27 protected void execute() {
32 protected boolean isFinished() {
37 protected void end() {
38 Robot
.getClimber().stop();
42 protected void interrupted() {