| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | } |
| | | 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; |
| | |
| | | } |
| | | } |
| | | } |
| | | if(report_ancnum>0) |
| | | { |
| | | uwbled=BLUE; |
| | | }else{ |
| | | uwbled=RED; |
| | | } |
| | | if(report_ancnum>LORA_REPORT_MAXANC_NUM) //考虑lora传输时间,最多发送10个基站数据。 |
| | | report_ancnum = LORA_REPORT_MAXANC_NUM; |
| | | |