add Motor value in constants
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index f024569b545fec1f707fe665e07413610c2f6121..2c99adc7bd4aa2185aa87fab3fb31b64546bf35b 100644 (file)
@@ -1,5 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands.climber;
 
+import org.usfirst.frc.team3501.robot.Robot;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
@@ -11,6 +13,12 @@ import edu.wpi.first.wpilibj.command.Command;
 public class StopWinch extends Command {
 
   public StopWinch() {
+<<<<<<< HEAD
+    requires(Robot.getDriveTrain());
+=======
+    requires(Robot.getClimber());
+>>>>>>> add Motor value in constants
+
   }
 
   @Override
@@ -19,20 +27,21 @@ public class StopWinch extends Command {
 
   @Override
   protected void execute() {
-
   }
 
   @Override
   protected boolean isFinished() {
-    return false;
+    return true;
   }
 
   @Override
   protected void end() {
+    Robot.getDriveTrain().stop();
 
   }
 
   @Override
   protected void interrupted() {
+    end();
   }
 }