Edit comments
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / RunWinchContinuous.java
index dc29866a2e4892cd6ba49491e1afcd81fdd3de9d..c15ca1047c16f1697cebfca04fc0abaf7432c89d 100644 (file)
@@ -5,7 +5,8 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * Runs the winch continuously at a given motor value
+ * This command will run the winch motor continuously until the button
+ * triggering it is released
  *
  * @author shivanighanta
  *
@@ -30,7 +31,7 @@ public class RunWinchContinuous extends Command {
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return !Robot.getOI().toggleWinch.get();
   }
 
   @Override