From 9e1e1f61ded6e1d7aa81aa74c0af6f073a454ec2 Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期三, 16 九月 2020 08:22:36 +0800
Subject: [PATCH] V1.16 修改时间参数

---
 Src/application/dw_app.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index 271fdc8..2abebf4 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -54,7 +54,7 @@
 
 #define DELAY_BETWEEN_TWO_FRAME_UUS 400
 
-#define POLL_RX_TO_RESP_TX_DLY_UUS 420
+#define POLL_RX_TO_RESP_TX_DLY_UUS 470
 /* This is the delay from the end of the frame transmission to the enable of the receiver, as programmed for the DW1000's wait for response feature. */
 #define RESP_TX_TO_FINAL_RX_DLY_UUS 200
 /* Receive final timeout. See NOTE 5 below. */
@@ -335,7 +335,7 @@
 	flag_getresponse=0;
 	start_count=HAL_LPTIM_ReadCounter(&hlptim1);
 	recbase_num=0;
-	timeout=ceil((float)nearbase_num*0.4)+2;
+	timeout=ceil((float)nearbase_num*SLOT_SCALE)+3;
 	end_count=start_count+(timeout<<5);
 	if(end_count>=32768)
 	{end_count-=32768;}

--
Gitblit v1.9.3