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),