From 03c3a1878df2cb6a72fdffa393c9e453f6e1b6ac Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期五, 03 十一月 2023 16:40:00 +0800
Subject: [PATCH] 版本v2.11,修改防撞基站剔除机制。

---
 Src/application/dw_app.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index 00d603f..68fb1ba 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -835,7 +835,7 @@
 
           exsistbase_list[i]--;
           clockOffsetRatio = anc_clockoffset[i] * (FREQ_OFFSET_MULTIPLIER * HERTZ_TO_PPM_MULTIPLIER_CHAN_2 / 1.0e6) ;
-          rtd_init = tag_resprx[i] - poll_tx_ts;
+          rtd_init = tag_resprx[i] - poll_tx_ts&0xffffffff;
           rtd_resp = anc_resptx[i] - anc_pollrx[i];
           tof = ((rtd_init - rtd_resp * (1 - clockOffsetRatio)) / 2.0) * DWT_TIME_UNITS;
           distance = tof * SPEED_OF_LIGHT;
@@ -1305,7 +1305,8 @@
 //            SCB->AIRCR = 0X05FA0000|(unsigned int)0x04; //软复位回到bootloader   
 //        }
 //    }
-    Dw1000_Init();
+    dwt_forcetrxoff();
+//    Dw1000_Init();
     error_times = 0;
 	switch(tag_state)
 	{

--
Gitblit v1.9.3