Delete copies of methods, and change initialize code in runIntakeContinuous and runRe...
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index 892d2ddfb2c726a90814d39bc7c0b2c00a1ba344..597bd65d18ca44be30885d09d056aee9070f13af 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,8 +13,7 @@ import edu.wpi.first.wpilibj.command.Command;
 public class StopWinch extends Command {
 
   public StopWinch() {
-    requires(Robot.getClimber());
-
+    requires(Robot.getDriveTrain());
   }
 
   @Override
@@ -34,7 +31,7 @@ public class StopWinch extends Command {
 
   @Override
   protected void end() {
-    Robot.getClimber().stop();
+    Robot.getDriveTrain().stop();
 
   }