From 4109f0604cd4d1221929497df94b69ec2c54a4ed Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期四, 20 四月 2023 17:05:14 +0800
Subject: [PATCH] V1.55 香港L3-L4测试调通

---
 Src/application/dw_app.h |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h
index c8a911a..e70ea23 100644
--- a/Src/application/dw_app.h
+++ b/Src/application/dw_app.h
@@ -8,6 +8,11 @@
 #include "ADC.h"
 #include "TrackingDiff.h"
 
+#define MAX_ANCFREQ    20//基站频率上限
+#define NOTAG_FREQ     1// 无标签情况下,基站定位频率
+#define FREQ_LOST_TIME   30 // 标签无信号恢复频率1HZ时间。秒
+#define SENDANCPARA_LEN 102
+#define BASELOST_STOPMOTOR_TIME 5
 //BITSTATE
 #define GOINGSLEEPBIT 1
 
@@ -34,15 +39,22 @@
 #define RESPONSE 							0x02
 #define FINAL   							0x03
 #define SYNC   								0x04
-#define NEAR_MSG   						0x05
-#define NEAR_POLL   					0x06
-#define NEAR_RESPONSE   			0x07
-#define NEAR_FINAL   					0x08
+
+//#define NEAR_POLL   					    0x06
+//#define NEAR_RESPONSE   			        0x07
+//#define NEAR_FINAL   					    0x08
+//#define NEAR_PRAAREPLY   					0x20
+
+#define MBX_POLL   					        0x20
+#define MBX_RESPONSE   			            0x21
+#define MBX_FINAL   					    0x22
+#define MBX_PRAAREPLY   					0x23
 //General
 #define GROUP_ID_IDX   				0
 #define ANCHOR_ID_IDX    			1
 #define TAG_ID_IDX    				5
 #define MESSAGE_TYPE_IDX 			9	
+#define MESSAGE_PARAREPLY_IDX 		10
 //Poll
 #define TAGSTATE              7
 #define ANC_TYPE_IDX 					14
@@ -50,9 +62,9 @@
 #define DIST_IDX 							10
 #define ANCTIMEMS             14
 #define ANCTIMEUS             16
-#define TAGSLOTPOS						7
+#define TAGFREQ_IDX						7
 #define MOTORSTATE_INDEX      19
-#define REMOTEPARA_INDEX      20
+#define REMOTEPARA_INDEX      22
 //Final
 #define TAGCONFIGSUCCESS_INDEX 7
 #define FINAL_MSG_POLL_TX_TS_IDX 10
@@ -67,7 +79,9 @@
 #define NEARBASENUM_INDEX    10
 #define NEARBASEID_INDEX		 11
 //NEAR POLL
-
+#define RESP_MSG_POLL_RX_TS_IDX  26
+#define RESP_MSG_RESP_TX_TS_IDX  30
+#define RESP_MSG_ANC_DISTOFFSET  34
 
 #define SEQUENCE_IDX					3
 #define BATTARY_IDX						4

--
Gitblit v1.9.3