competition fixes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index f024569b545fec1f707fe665e07413610c2f6121..0a2b5f97b7e2be8008c555461496eaa81cf7da6b 100644 (file)
@@ -1,5 +1,8 @@
 package org.usfirst.frc.team3501.robot.commands.climber;
 
+import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Climber;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
@@ -9,8 +12,10 @@ import edu.wpi.first.wpilibj.command.Command;
  *
  */
 public class StopWinch extends Command {
+  Climber climber = Robot.getClimber();
 
   public StopWinch() {
+    requires(climber);
   }
 
   @Override
@@ -19,20 +24,20 @@ public class StopWinch extends Command {
 
   @Override
   protected void execute() {
-
   }
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return true;
   }
 
   @Override
   protected void end() {
-
+    climber.stop();
   }
 
   @Override
   protected void interrupted() {
+    end();
   }
 }