Fix merging errors with climber subclass
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index a119c91a8d9967f47c63bc21dfe099d7d5da8243..0924614e3e4a931a1f0233fef4aeaec33dc9770a 100644 (file)
@@ -5,20 +5,16 @@ 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
  *
  */
 public class StopWinch extends Command {
-  /**
-   * 
-   */
+
   public StopWinch() {
+    requires(Robot.getDriveTrain());
     requires(Robot.getClimber());
-
   }
 
   @Override
@@ -36,7 +32,7 @@ public class StopWinch extends Command {
 
   @Override
   protected void end() {
-    Robot.getClimber().stop();
+    Robot.getDriveTrain().stop();
 
   }