This commit is contained in:
Ryan Manley
2022-03-12 17:43:17 -07:00
parent 2a9a3d9486
commit 18624989b7
@@ -298,8 +298,8 @@ public class RobotContainer {
/* Button Box Buttons */
new JoystickButton(getButtonFox(), ButtonBox.Button.kLeftSwitch.value)
.whenPressed(new InstantCommand(() -> configureManualButtonBindings()))
.whenReleased(new InstantCommand(() -> configureButtonBindings()));
.whenPressed(new RunCommand(() -> configureManualButtonBindings()))
.whenReleased(new RunCommand(() -> configureButtonBindings()));
new JoystickButton(getButtonFox(), ButtonBox.Button.kMiddleSwitch.value)
.whileHeld(new RunCommand(() -> System.out.println("MiddleSwitch")));