add Motor value in constants
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index 903f22b94488c57bb6bdee942894ef6f4b40e084..2c99adc7bd4aa2185aa87fab3fb31b64546bf35b 100644 (file)
@@ -5,9 +5,7 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
- * This command stops the winch
- *
- * post-condition: the motor values are set to 0.
+ * Stops the winch
  *
  * @author shivanighanta
  *
@@ -15,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
@@ -32,7 +36,7 @@ public class StopWinch extends Command {
 
   @Override
   protected void end() {
-    Robot.getClimber().stop();
+    Robot.getDriveTrain().stop();
 
   }