From e328ebef585cea2351b37117b2d5ac4978ecd3c0 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期二, 11 二月 2025 14:57:23 +0800 Subject: [PATCH] 1111111 --- keil/include/components/app/src/aoa.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/keil/include/components/app/src/aoa.c b/keil/include/components/app/src/aoa.c index 9ba4534..d726b30 100644 --- a/keil/include/components/app/src/aoa.c +++ b/keil/include/components/app/src/aoa.c @@ -52,7 +52,7 @@ #include "board.h" #if PDOA_3D_EN -#define PDOA_3D_SUPPORT_NUM 100 +#define PDOA_3D_SUPPORT_NUM 10 #define PDOA_3D_TIMEOUT_MS 2000 static struct PDOA_3D_MAC_ADDR_T mac_addr_cache[PDOA_3D_SUPPORT_NUM]; static struct PDOA_3D_PDOA_DATA_T pdoa_data_cache[PDOA_3D_SUPPORT_NUM]; @@ -218,6 +218,8 @@ void aoa_process(const struct MAC_HW_REPORT_T *ind) { + power_off_radio(); + if (uwb_app_config.session_param.device_role == DEV_ROLE_INITIATOR) { phy_timer_target_set(aoa_env.anchor_point + aoa_env.ranging_period - UWB_EVT_PREFETCH_TIME, aoa_timer_callback); @@ -243,6 +245,7 @@ if (aoa_env.stage == AOA_SYNC) { sts_lsp_store(); + power_on_radio(0, 1); mac_rx(EVT_MODE_MAC_PHY_ASAP, 0, aoa_env.ranging_period); mac_start(); return; @@ -258,8 +261,6 @@ } phy_timer_target_set(aoa_env.anchor_point + aoa_env.ranging_period - UWB_EVT_PREFETCH_TIME, aoa_timer_callback); } - - power_off_radio(); } void aoa_done(const struct MAC_HW_REPORT_T *rx) @@ -270,8 +271,9 @@ { ind->hdr.event = AOA_DONE_MSG; ind->status = rx->err_code; - ind->rssi = rx->rssi; - ind->snr = rx->snr; + // ind->rssi = rx->rssi; + ind->rssi = correct_rssi(rx->rssi); + ind->snr = correct_snr(rx->snr); if ((rx->pkt_len) && (rx->pkt_data != NULL)) { -- Gitblit v1.9.3