X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FStopWinch.java;h=0924614e3e4a931a1f0233fef4aeaec33dc9770a;hb=d0a3a99e6e2e593b189cea7842eee444153fc8e9;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..0924614 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/StopWinch.java @@ -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,8 @@ import edu.wpi.first.wpilibj.command.Command; public class StopWinch extends Command { public StopWinch() { + requires(Robot.getDriveTrain()); requires(Robot.getClimber()); - } @Override @@ -34,7 +32,7 @@ public class StopWinch extends Command { @Override protected void end() { - Robot.getClimber().stop(); + Robot.getDriveTrain().stop(); }