From ca35cfe929b1d8927a28fc472b4cfa98a7439159 Mon Sep 17 00:00:00 2001 From: 2491NoMythic <2491nomythic@gmail.com> Date: Sat, 10 Feb 2024 14:51:40 -0600 Subject: [PATCH] while true for gotoamp --- src/main/java/frc/robot/RobotContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 7f203003..a542d25f 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -228,7 +228,7 @@ private void configureBindings() { new Trigger(driverController::getPSButton).onTrue(new InstantCommand(driveTrain::zeroGyroscope)); SmartDashboard.putData(new RotateRobot(driveTrain, driveTrain::calculateSpeakerAngle)); new Trigger(driverController::getTriangleButton).onTrue(new GoToClimbSpot(driveTrain, climbSpotChooser)); - new Trigger(driverController::getCrossButton).onTrue(new GoToAmp(driveTrain)); + new Trigger(driverController::getCrossButton).whileTrue(new GoToAmp(driveTrain)); new Trigger(driverController::getR1Button).whileTrue(new AimRobotMoving( driveTrain, () -> modifyAxis(-driverController.getRawAxis(Z_AXIS), DEADBAND_NORMAL),