X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FRunWinch.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FRunWinch.java;h=39149abb14fba12c4c77e24d5aaf2d694da20bf6;hp=5a76b5c182b377c6892b64c75572ca0857fa44ec;hb=f74d236db406193b851bff99e4daec7b7abf35e7;hpb=8275a069e1891bd27156dcd947a897519c42a3a3 diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java index 5a76b5c..39149ab 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinch.java @@ -37,7 +37,7 @@ public class RunWinch extends Command { * @param motorVal * value range is from -1 to 1 */ - public RunWinch(double time, double motorVal) { + public RunWinch() { requires(climber); this.time = time; this.motorVal = motorVal; @@ -45,16 +45,18 @@ public class RunWinch extends Command { @Override protected void initialize() { + climber.setCANTalonsBrakeMode(climber.COAST_MODE); } @Override protected void execute() { - climber.setMotorValues(motorVal); + climber.setMotorValues(climber.CLIMBER_SPEED); } @Override protected boolean isFinished() { - return timeSinceInitialized() >= time; + // return timeSinceInitialized() >= time; + return false; } @Override