From ba9bc95d95fbd04e34ca5d61677422d28c089bf8 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期五, 05 七月 2024 16:41:41 +0800
Subject: [PATCH] 1.25,修改后测试一天一夜已经  不死机。

---
 Src/application/dw_app.h |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h
index d7c209a..ed8a28d 100644
--- a/Src/application/dw_app.h
+++ b/Src/application/dw_app.h
@@ -49,6 +49,7 @@
 #define MBX_RESPONSE   			            0x21
 #define MBX_FINAL   					    0x22
 #define MBX_PRAAREPLY   					0x23
+#define MBX_REG   						    0x24
 //General
 #define GROUP_ID_IDX   				0
 #define ANCHOR_ID_IDX    			1
@@ -74,6 +75,17 @@
 #define FINAL_MSG_TS_LEN 4
 //SYNC
 #define SYNC_SEQ_IDX    			5
+
+
+//REG POLL
+#define REGP_TAGSTATE_INDEX  10
+#define REGP_VERSION_INDEX  11
+#define REGP_FREQUENCY_INDEX  13
+#define REGP_POWER_INDEX  14
+#define REGP_IMUTHRES_INDEX  15
+#define REGP_NOMOVESLEEPTIME_INDEX  17
+#define REGP_HEIGHTOFFSET_INDEX 19
+
 //NEAR MSG
 #define NEARMSG_EMPTYSLOTPOS_INDEX		 1 //RESPONSE
 #define NEARBASENUM_INDEX    10
@@ -101,7 +113,7 @@
 extern uint32_t g_UWB_com_interval;
 extern float dis_after_filter;
 
-extern uint8_t usart_send[25];
+extern uint8_t usart_send[300];
 
 void IdleTask(void);
 uint16_t Checksum_u16(uint8_t* pdata, uint32_t len);
@@ -113,4 +125,5 @@
 
 extern void TagDistClear(void);
 void Dw1000_App_Init(void);
+void UWB_RXStart(uint8_t tims_ms);
 #endif

--
Gitblit v1.9.3