From 0779bf0e82a18412afa059f4db363d5959f56a0d Mon Sep 17 00:00:00 2001 From: Will Hedgecock Date: Mon, 4 Nov 2024 20:26:20 -0600 Subject: [PATCH] Enable LNA for Antenna 1 --- software/firmware/src/peripherals/src/ranging.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/software/firmware/src/peripherals/src/ranging.c b/software/firmware/src/peripherals/src/ranging.c index 14979b3e..d05c15c6 100644 --- a/software/firmware/src/peripherals/src/ranging.c +++ b/software/firmware/src/peripherals/src/ranging.c @@ -492,14 +492,17 @@ void ranging_radio_choose_antenna(uint8_t antenna_number) switch (antenna_number) { case 0: + dwt_setlnapamode(DWT_LNA_ENABLE); am_hal_gpio_output_clear(PIN_RADIO_ANTENNA_SELECT1); am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT2); break; case 1: + dwt_setlnapamode(DWT_LNA_PA_DISABLE); am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT1); am_hal_gpio_output_clear(PIN_RADIO_ANTENNA_SELECT2); break; case 2: + dwt_setlnapamode(DWT_LNA_PA_DISABLE); am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT1); am_hal_gpio_output_set(PIN_RADIO_ANTENNA_SELECT2); break;