From 5434fead385b84e0b52fe5309292d11b7612a384 Mon Sep 17 00:00:00 2001 From: suryatho Date: Wed, 6 Mar 2024 20:46:51 -0500 Subject: [PATCH 1/2] Double press left bumper to start climb sequence --- .../java/org/littletonrobotics/frc2024/RobotContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java b/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java index 1fea6bd4..b6261225 100644 --- a/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java +++ b/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java @@ -583,7 +583,7 @@ private void configureButtonBindings() { // Climber controls operator.rightStick().onTrue(Commands.runOnce(() -> trapScoreMode = !trapScoreMode)); operator - .leftBumper() + .leftBumper().doublePress() .and(() -> trapScoreMode) .toggleOnTrue( ClimbingCommands.climbNTrapSequence( @@ -598,7 +598,7 @@ private void configureButtonBindings() { autoDriveDisable) .withInterruptBehavior(InterruptionBehavior.kCancelIncoming)); operator - .leftBumper() + .leftBumper().doublePress() .and(() -> !trapScoreMode) .toggleOnTrue( ClimbingCommands.simpleClimbSequence( From e0747ee2286a6273ed56d77783cde04eb22f7ff9 Mon Sep 17 00:00:00 2001 From: suryatho Date: Wed, 6 Mar 2024 21:08:30 -0500 Subject: [PATCH 2/2] check style --- .../java/org/littletonrobotics/frc2024/RobotContainer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java b/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java index b6261225..b08485c0 100644 --- a/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java +++ b/src/main/java/org/littletonrobotics/frc2024/RobotContainer.java @@ -583,7 +583,8 @@ private void configureButtonBindings() { // Climber controls operator.rightStick().onTrue(Commands.runOnce(() -> trapScoreMode = !trapScoreMode)); operator - .leftBumper().doublePress() + .leftBumper() + .doublePress() .and(() -> trapScoreMode) .toggleOnTrue( ClimbingCommands.climbNTrapSequence( @@ -598,7 +599,8 @@ private void configureButtonBindings() { autoDriveDisable) .withInterruptBehavior(InterruptionBehavior.kCancelIncoming)); operator - .leftBumper().doublePress() + .leftBumper() + .doublePress() .and(() -> !trapScoreMode) .toggleOnTrue( ClimbingCommands.simpleClimbSequence(