From adfc7e798b9cbdd022bf8df971843436912a0fe5 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期日, 20 七月 2025 16:58:30 +0800
Subject: [PATCH] 成功移植g_com_map表逻辑,初步测试能读能写,并且TDOA效果和官方一致

---
 keil/include/components/app/src/aoa_task.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/keil/include/components/app/src/aoa_task.c b/keil/include/components/app/src/aoa_task.c
index 05854ca..fb6f0a5 100644
--- a/keil/include/components/app/src/aoa_task.c
+++ b/keil/include/components/app/src/aoa_task.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and
+ * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and
  * its subsidiaries and affiliates (collectly called MKSEMI).
  *
  * All rights reserved.
@@ -78,7 +78,7 @@
                 if (sts_valid_check())
                 {
                     report.sts_valid = 1;
-                    ranging_first_path_detect(ind->rssi);
+                    ranging_first_path_detect(ind->rssi, ind->snr);
 
 #if PDOA_3D_EN
                     uint16_t target_addr = uwbs_peer_short_addr_get();
@@ -102,9 +102,9 @@
                     uint16_t distance = 0;
                     board_ranging_result_correct(&distance, &report.azimuth, &report.elevation);
 
-                    report.pdoa[0] = pdoa_select_get(0, 3);
-                    report.pdoa[1] = pdoa_select_get(1, 3);
-                    report.pdoa[2] = pdoa_select_get(2, 3);
+                    report.pdoa[0] = pdoa_result_get(0, 3);
+                    report.pdoa[1] = pdoa_result_get(1, 3);
+                    report.pdoa[2] = pdoa_result_get(2, 3);
 
                     float *sts_rssi = sts_rssi_output_get();
                     report.sts_rssi[0] = sts_rssi[0];

--
Gitblit v1.9.3