Implement StopWinch
authorShivani Ghanta <shivani.oghanta@gmail.com>
Sat, 14 Jan 2017 23:46:50 +0000 (15:46 -0800)
committerShivani Ghanta <shivani.oghanta@gmail.com>
Sat, 21 Jan 2017 22:27:37 +0000 (14:27 -0800)
src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java

index 6c83816c37cc9102e23bed14b23b3e421701c042..d8267ff10f4601e6636d22523308a699d35b4788 100644 (file)
@@ -27,15 +27,17 @@ public class StopWinch extends Command {
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return true;
   }
 
   @Override
   protected void end() {
+    Robot.getClimber().stop();
 
   }
 
   @Override
   protected void interrupted() {
+    end();
   }
 }