From f64e5147dfd5f33e098b97a00ff19d0cd5e58e85 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期二, 24 十月 2023 17:21:27 +0800
Subject: [PATCH] V2.71

---
 Src/application/dw_app.h |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h
index 567fc39..c6032a8 100644
--- a/Src/application/dw_app.h
+++ b/Src/application/dw_app.h
@@ -19,7 +19,7 @@
 #define HEX_OUTPUT
 #define TOTAL_SLOTNUM 200
 #define SLOTTIME_MS 48
-#define SLOT_SCALE 0.24
+#define SLOT_SCALE 0.55
 #define MAX_NEARBASE_NUM 12
 #define KEEP_TIMES 3
 
@@ -33,6 +33,8 @@
 #define MIN_ANCHOR_NUM 2
 #define SYNC_SEQ_IDX    			5
 #define REMOTEPARA_LEN 18
+#define OUTRANGE_RESTARTTIMES 5
+
 
 #define POLL     							0x01
 #define RESPONSE 							0x02
@@ -43,6 +45,14 @@
 #define NEAR_RESPONSE   			0x07
 #define NEAR_FINAL   					0x08
 #define SPOLL     							0x09
+#define DISCOVERPOLL     				    0x0A
+#define DISCOVERRESPONSE     				    0x0B
+#define DISCOVERFINAL     				    0x0C
+
+#define POS_MSG   						0x15
+#define POS_POLL   					    0x16
+#define POS_RESPONSE   			        0x17
+#define POS_FINAL   					0x18
 
 #define REG_POLL   						0x10   //
 #define REG_RESPONSE   				0x11   //
@@ -50,7 +60,7 @@
 #define GROUP_ID_IDX   				0
 #define ANCHOR_ID_IDX    			1
 #define TAG_ID_IDX    				5
-#define MESSAGE_TYPE_IDX 			9	
+#define MESSAGE_TYPE_IDX 			9
 
 #define NEARBASENUM_INDEX    18
 #define NEARBASEID_INDEX		 19
@@ -65,6 +75,9 @@
 #define MOTORSTATE_INDEX      19
 #define NR_NEARSWITCH_DISTANCE 20
 #define REMOTEPARA_INDEX      22
+#define MAXRANGE_DISTANCE       22
+#define ANC_SIGNALPOWER         24
+
 //Final
 #define TAGCONFIGSUCCESS_INDEX 7
 #define FINAL_MSG_POLL_TX_TS_IDX 10
@@ -127,4 +140,5 @@
 
 extern void TagDistClear(void);
 void Dw1000_App_Init(void);
+void DelayOneSlot(void);
 #endif

--
Gitblit v1.9.3