From f953d3bbc23a978d6bd0683371582c16eadc9daf Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 26 三月 2021 11:14:06 +0800
Subject: [PATCH] 临时版本

---
 源码/核心板/Src/main.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
index 770bdd5..664f759 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c"
@@ -45,7 +45,7 @@
 	memcpy(&hbsend[14],&checksum,2);
 }
 uint16_t vel_factor,pos_factor;
-u16 tyncpoll_time;
+u16 tyncpoll_time,dist_threshold;
 u16 slottime,max_slotpos;
 extern u8 module_power;
 extern u16 total_slotnum;
@@ -72,11 +72,13 @@
 	{
 	  g_com_map[COM_INTERVAL]=100;
 	}
-<<<<<<< HEAD
+
 	g_com_map[VERSION] = 0x012a;
-=======
-	g_com_map[VERSION] = 0x0127;
->>>>>>> parent of 47d2701 (V1.41  璐熸暟涓嶈緭鍑� 淇敼鍥炲485鏃犳樉绀築UG)
+dist_threshold = (g_com_map[SPEEDFILTER_THRES]*10)/(1000/g_com_map[COM_INTERVAL]);
+		if(dist_threshold<300)
+		{dist_threshold = 300;}
+		if(dist_threshold>15000)
+		{dist_threshold = 15000;}
 	g_com_map[SW_TYPE] = 	SW_FANGZHUANG;
 	dev_id = g_com_map[DEV_ID];
 	slottime=ceil((double)g_com_map[MAX_REPORT_ANC_NUM]*SLOT_SCALE)+3;

--
Gitblit v1.9.3