From 0539458f79f9d12411d4ac71bf7aa2c1f4a32cc0 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 27 十二月 2023 17:12:35 +0800 Subject: [PATCH] 1 --- Src/main.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Src/main.c b/Src/main.c index 1fce106..6590662 100644 --- a/Src/main.c +++ b/Src/main.c @@ -953,17 +953,17 @@ freqlost_count+=1/(float)tag_frequency; range_lost_time +=1/(float)tag_frequency; // g_start_send_flag=1; - if(freqlost_count>FREQ_LOST_TIME) - { - tag_frequency = NOTAG_FREQ; - if(lost_jumpcount++>=10) //无测距情况下,每5秒发一次; - { - lost_jumpcount = 0; - g_start_send_flag=1; - } - }else{ +// if(freqlost_count>FREQ_LOST_TIME) +// { +// tag_frequency = NOTAG_FREQ; +// if(lost_jumpcount++>=0) //无测距情况下,每5秒发一次; +// { +// lost_jumpcount = 0; +// g_start_send_flag=1; +// } +// }else{ g_start_send_flag=1; - } +// } if(range_lost_time<1||freqlost_count>FREQ_LOST_TIME) { SetNextPollTime(0); -- Gitblit v1.9.3