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=31a5b552f011a80d7a1967547f038f90a3ac8be7;hpb=0c916244b8f31d6b2af81d27e92a7383504338e2;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 31a5b55..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,6 +1,7 @@ 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; @@ -11,9 +12,10 @@ import edu.wpi.first.wpilibj.command.Command; * */ public class StopWinch extends Command { + Climber climber = Robot.getClimber(); public StopWinch() { - requires(Robot.getClimber()); + requires(climber); } @Override @@ -31,8 +33,7 @@ public class StopWinch extends Command { @Override protected void end() { - Robot.getClimber().stop(); - + climber.stop(); } @Override