competition fixes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / StopWinch.java
index d8267ff10f4601e6636d22523308a699d35b4788..0a2b5f97b7e2be8008c555461496eaa81cf7da6b 100644 (file)
@@ -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
@@ -22,7 +24,6 @@ public class StopWinch extends Command {
 
   @Override
   protected void execute() {
-
   }
 
   @Override
@@ -32,8 +33,7 @@ public class StopWinch extends Command {
 
   @Override
   protected void end() {
-    Robot.getClimber().stop();
-
+    climber.stop();
   }
 
   @Override