From a4586d89681d7d282c26f49c9b799c5b09f553dd Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期二, 28 三月 2023 13:20:19 +0800
Subject: [PATCH] V2.3 修改加速计阈值到2

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

diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c
index 39d7c6c..fd3aa5c 100644
--- a/Src/application/dw_app.c
+++ b/Src/application/dw_app.c
@@ -471,7 +471,7 @@
 u8 nearbase_num=0,last_nearbase_num,next_nearbase_num,last_slotnum, para_update,para_len,stationary_flag=0;
 u32 rec_tagpos_binary;
 int16_t offset=4700,temptimer;
-u8 motor_state,rec_remotepara_state,rec_remotepara[80];
+static u8 motor_state,rec_remotepara_state,rec_remotepara[80];
 
 
 #define SINGLEPOLL_BASENUM 5
@@ -763,6 +763,7 @@
             tagpoll_sync_sec = current_slotpos/200;
             tagslotpos = current_slotpos%200;
             max_slotpos = rec_tagperiod*20;
+            tag_frequency = 10/rec_tagperiod;
 			tag_state=NEARPOLL;
 		}
 	}else{
@@ -1159,7 +1160,7 @@
 {
 	static u8 regpoll_count=0;
 	mainbase_lost_count = 0;
-		tag_frequency = REGISTER_FREQUENCY;
+		//tag_frequency = REGISTER_FREQUENCY;
 		bigslot_num = TOTAL_SLOTNUM/tag_frequency;
 		regpoll_count++;
 		if(regpoll_count%2)

--
Gitblit v1.9.3