From 51393af87f6dc09a00e78d71dbff8a15721c1198 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期二, 18 二月 2025 10:29:46 +0800
Subject: [PATCH] V1.9 增加看门狗

---
 APL/dw_app.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/APL/dw_app.c b/APL/dw_app.c
index b2b287a..17352d8 100644
--- a/APL/dw_app.c
+++ b/APL/dw_app.c
@@ -126,7 +126,7 @@
 static uint64_t resp_tx_ts;
 static uint64_t final_rx_ts;
 static double tof;
-int32_t anchor_dist_last_frm[TAG_NUM_IN_SYS],his_dist[TAG_NUM_IN_SYS];	;	
+int32_t anchor_dist_last_frm[TAG_NUM_IN_SYS];	
 uint32_t tag_id = 0;
 uint32_t tag_id_recv = 0;
 uint32_t anc_id_recv = 0;
@@ -185,6 +185,7 @@
         *ts += ts_field[i] << (i * 8);
     }
 }
+u8 flag_uwbinit_ok;
 extern u8 flag_ancupd_start;
 void Dw1000_Init(void)
 {
@@ -212,6 +213,7 @@
 
     dwt_setrxtimeout(1000);//设定接收超时时间,0位没有超时时间
 		dwt_rxenable(0);//打开接收
+		flag_uwbinit_ok = 1;
     /* Set expected response's delay and timeout. See NOTE 4 and 5 below.
      * As this example only handles one incoming frame with always the same delay and timeout, those values can be set here once for all. */
 				//设置接收超时时间

--
Gitblit v1.9.3