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 <<<<<<< 1b45bc927675060d057730fc7c7083fb9d813f66
9 * This command runs the winch motor continuously at a specified speed until the
10 * button triggering it is released. This command also makes the drive train
11 * motors run because the winch is controlled by the drive train.
13 * This command will run the winch motor continuously until the button
14 * triggering it is released. This command also runs the drive train.
15 >>>>>>> Delete StopWinch and Climber subsystem, edit javadoc comments
17 * pre-condition: This command must be run by a button in OI. The robot must be
18 * attached to the rope.
20 * post-condition: Winch motor set to a specified speed.
22 * @author shivanighanta
25 public class RunWinchContinuous
extends Command
{
26 private double motorVal
;
29 * See JavaDoc comment in class for details
32 * value range is from -1 to 1
34 public RunWinchContinuous(double motorVal
) {
35 requires(Robot
.getDriveTrain());
36 this.motorVal
= motorVal
;
40 protected void initialize() {
41 Robot
.getDriveTrain().setMotorValues(motorVal
, motorVal
);
42 <<<<<<< 1b45bc927675060d057730fc7c7083fb9d813f66
45 >>>>>>> Delete StopWinch and Climber subsystem
, edit javadoc comments
49 protected void execute() {
54 protected boolean isFinished() {
59 protected void end() {
64 protected void interrupted() {