From 1cd213bab3444e2584ba25a2b38f1db0092f152e Mon Sep 17 00:00:00 2001 From: NoMythic <2491nomythic@gmail.com> Date: Tue, 30 Jan 2024 16:47:50 -0600 Subject: [PATCH 1/2] Square button now causes the climber to go down --- src/main/java/frc/robot/RobotContainer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 30730083..e73e3933 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -43,6 +43,7 @@ import frc.robot.commands.goToPose.GoToAmp; import frc.robot.commands.goToPose.GoToClimbSpot; import frc.robot.commands.climber_commands.AutoClimb; +import frc.robot.commands.climber_commands.ClimberPullDown; import frc.robot.subsystems.DrivetrainSubsystem; import frc.robot.subsystems.ExampleSubsystem; import frc.robot.subsystems.Lights; @@ -218,6 +219,7 @@ private void configureBindings() { new Trigger(operatorController::getCrossButton).onTrue(new AutoClimb(climber)).onFalse(new InstantCommand(()-> climber.climberStop())); new Trigger(operatorController::getTriangleButton).onTrue(new InstantCommand(()-> climber.climberGo(ClimberConstants.CLIMBER_SPEED_UP))).onFalse(new InstantCommand(()-> climber.climberStop())); new Trigger(operatorController::getCrossButtonPressed).onTrue(new AutoClimb(climber)); + new Trigger(operatorController::getSquareButton).onTrue(new ClimberPullDown(climber)); } // //Intake bindings From 1d7c143c0004d6c8b4d439b309e212e32986fe07 Mon Sep 17 00:00:00 2001 From: NoMythic <2491nomythic@gmail.com> Date: Tue, 30 Jan 2024 17:05:47 -0600 Subject: [PATCH 2/2] Another tweak --- src/main/java/frc/robot/RobotContainer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index e73e3933..804dae8d 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -218,7 +218,6 @@ private void configureBindings() { if(climberExists) { new Trigger(operatorController::getCrossButton).onTrue(new AutoClimb(climber)).onFalse(new InstantCommand(()-> climber.climberStop())); new Trigger(operatorController::getTriangleButton).onTrue(new InstantCommand(()-> climber.climberGo(ClimberConstants.CLIMBER_SPEED_UP))).onFalse(new InstantCommand(()-> climber.climberStop())); - new Trigger(operatorController::getCrossButtonPressed).onTrue(new AutoClimb(climber)); new Trigger(operatorController::getSquareButton).onTrue(new ClimberPullDown(climber)); }