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;
/**
- * 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.getClimber());
+ Climber climber = Robot.getClimber();
+ public StopWinch() {
+ requires(climber);
}
@Override
@Override
protected void end() {
- Robot.getClimber().stop();
-
+ climber.stop();
}
@Override