X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FRunWinchContinuous.java;h=65277997b70fd20ccad3d85fbe60b2b5a8eb23c1;hp=e20121024a0528b7d3a8c0637f96bc154f4a39a2;hb=cef1f36da71950bc32d74d2ba0477a51f478f209;hpb=5c1a9af18efcd2cea4d52d361421e6b9b90ac7f7 diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java index e201210..6527799 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java @@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.command.Command; * */ public class RunWinchContinuous extends Command { - private double motorVal; /** * See JavaDoc comment in class for details @@ -25,14 +24,15 @@ public class RunWinchContinuous extends Command { * @param motorVal * value range is from -1 to 1 */ - public RunWinchContinuous(double motorVal) { + public RunWinchContinuous() { requires(Robot.getDriveTrain()); - this.motorVal = motorVal; } @Override protected void initialize() { - Robot.getDriveTrain().setMotorValues(motorVal, motorVal); + Robot.getDriveTrain().setMotorValues( + Robot.getDriveTrain().getClimbingSpeed(), + Robot.getDriveTrain().getClimbingSpeed()); } @Override