From 6f6d3bc73b0b59b67ec7c3acfe6cd966523741b3 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期三, 24 四月 2024 10:04:12 +0800 Subject: [PATCH] V1.21 修改LED显示,增加秒延迟功能 --- Src/application/dw_mbx_tag.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Src/application/dw_mbx_tag.c b/Src/application/dw_mbx_tag.c index 94f34ed..d7d057e 100644 --- a/Src/application/dw_mbx_tag.c +++ b/Src/application/dw_mbx_tag.c @@ -195,7 +195,7 @@ memcpy(&rec_ancdistlist,&rx_buffer[FZ_NEARBASEID_INDEX+2*rec_nearbase_num],2*rec_nearbase_num); // memcpy(&rec_antdelay,&rx_buffer[FZ_NEARBASEID_INDEX+rec_nearbase_num*4],2); uwb_losttimer = 0; - uwbled=GREEN; + taglist_pos=CmpTagInList(tag_id_recv); if(taglist_num>=ANC_MAX_NUM) break; @@ -252,7 +252,7 @@ u8 lora_jianting_flag = 1; void LoraReportFreqPoll(void) { - wg_state = WG_Lost; + // wg_state = WG_Lost; if(wg_lost_count++>WG_LOST_NOUWB_COUNT) { lora_jianting_flag = 0; @@ -261,8 +261,8 @@ } if(wg_state==WG_Lost) {static u8 channel_switch_count = 0; - channel_switch_count = 0; - if(channel_switch_count++>2) + // channel_switch_count = 10; + if(channel_switch_count++>1) { channel_switch_count = 0; wg_report_id = DEFAULT_LR_WG_ID; @@ -339,6 +339,12 @@ } } } + if(report_ancnum>0) + { + uwbled=BLUE; + }else{ + uwbled=RED; + } if(report_ancnum>LORA_REPORT_MAXANC_NUM) //考虑lora传输时间,最多发送10个基站数据。 report_ancnum = LORA_REPORT_MAXANC_NUM; -- Gitblit v1.9.3