X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FStopWinch.java;h=0a2b5f97b7e2be8008c555461496eaa81cf7da6b;hb=150f450f2b4f9e6094d71007507a7b877e05328a;hp=892d2ddfb2c726a90814d39bc7c0b2c00a1ba344;hpb=43980ce140ec7ed3392eb4d117092389f1ad57dd;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java b/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java index 892d2dd..0a2b5f9 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java @@ -1,22 +1,21 @@ 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 { + Climber climber = Robot.getClimber(); public StopWinch() { - requires(Robot.getClimber()); - + requires(climber); } @Override @@ -34,8 +33,7 @@ public class StopWinch extends Command { @Override protected void end() { - Robot.getClimber().stop(); - + climber.stop(); } @Override