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 * This command will run the winch motor continuously until the button
9 * triggering it is released
11 * @author shivanighanta
14 public class RunWinchContinuous
extends Command
{
15 private double motorVal
;
17 public RunWinchContinuous(double motorVal
) {
18 this.motorVal
= motorVal
;
22 protected void initialize() {
23 Robot
.getClimber().setMotorValue(motorVal
);
28 protected void execute() {
33 protected boolean isFinished() {
34 return !Robot
.getOI().toggleWinch
.get();
38 protected void end() {
39 Robot
.getClimber().stop();
43 protected void interrupted() {