implement ToggleWinch command
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
index 40df56df3ae0170c7be6ccf88d3f1e36915411ba..815d0cdbaf5d07d19e11f90ed1839801f014c9be 100644 (file)
@@ -65,7 +65,6 @@ public class OI {
 
     toggleWinch = new JoystickButton(leftJoystick,
         Constants.OI.TOGGLE_WINCH_PORT);
-    toggleWinch.whenPressed(new ToggleWinch());
 
     increaseShooterSpeed = new JoystickButton(leftJoystick,
         Constants.OI.INCREASE_SHOOTER_SPEED_PORT);
@@ -82,6 +81,7 @@ public class OI {
       toggleWinch.whenPressed(new MaintainClimbedPosition());
       isClimbing = false;
     }
+
     /*
      * if (!Robot.getDriveTrain().isClimbing()) { toggleWinch.whenPressed(new
      * RunWinchContinuous()); Robot.getDriveTrain().setClimbing(true); } else {