X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FStopWinch.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FStopWinch.java;h=0a2b5f97b7e2be8008c555461496eaa81cf7da6b;hp=597bd65d18ca44be30885d09d056aee9070f13af;hb=150f450f2b4f9e6094d71007507a7b877e05328a;hpb=9ca89e45fa84b2ec93bc6adf60c7dde1e0a7defb 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 597bd65..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.getDriveTrain()); + requires(climber); } @Override @@ -31,8 +33,7 @@ public class StopWinch extends Command { @Override protected void end() { - Robot.getDriveTrain().stop(); - + climber.stop(); } @Override