From d48641460072d9a160ca5f04977269ba0171a9e2 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期日, 12 四月 2020 16:34:29 +0800
Subject: [PATCH] V1.0 防撞初版

---
 源码/核心板/Src/application/dw_app.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
index b7a69d9..114ded4 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.h"
@@ -25,6 +25,8 @@
 //#define TAG_OUTPUT
 #define HEX_OUTPUT
 
+#define MAX_NEARBASE_NUM 10
+
 #define REPOET_ANC_NUM 1
 #define REPOET_ANC_NUM_MIN 1
 #define TAG_ID_START 		0// 0x00980000
@@ -50,7 +52,7 @@
  * frame length of approximately 2.66 ms with above configuration. */
 #define RESP_RX_TO_FINAL_TX_DLY_UUS 410
 /* Receive response timeout. See NOTE 5 below. */
-#define RESP_RX_TIMEOUT_UUS 600
+#define RESP_RX_TIMEOUT_UUS 2000
 
 #define DELAY_BETWEEN_TWO_FRAME_UUS 240
 
@@ -82,7 +84,7 @@
 #define DIST_IDX 							10
 #define ANCTIMEMS             14
 #define ANCTIMEUS             16
-#define TAGSLOTPOS						8
+#define TAGSLOTPOS						7
 //Final
 #define FINAL_MSG_POLL_TX_TS_IDX 10
 #define FINAL_MSG_RESP_RX_TS_IDX 14
@@ -99,7 +101,7 @@
 #define BUTTON_IDX						2
 #define SEQUENCE_IDX					3
 
-#define THRESHOLD_CHANGE_MAINBASE_DIST   50
+#define THRESHOLD_CHANGE_MAINBASE_DIST   5
 extern u8 neartimout_timer;
 extern u16 slottime,tyncpoll_time,max_slotpos;
 extern u16 poll_timer,tag_timer;

--
Gitblit v1.9.3