From 5102fff8a13c0319d8125a51d3d2354e7aacdcea Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期四, 31 七月 2025 16:40:06 +0800 Subject: [PATCH] 修改为2HZ发poll包,修改second task从原来2s一次为1s一次 --- keil/uwb_app.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/keil/uwb_app.c b/keil/uwb_app.c index 7e803c9..6526fdf 100644 --- a/keil/uwb_app.c +++ b/keil/uwb_app.c @@ -356,6 +356,7 @@ } float temp1,temp2; uint8_t aoa_fom[TAG_NUM_IN_SYS]; +static int16_t tagdist_list[TAG_NUM_IN_SYS]; static void angle_result_filter(uint8_t *mac_addr, int16_t *angle, uint8_t type) { if (angle == NULL) @@ -418,11 +419,11 @@ // // filter process - LOG_INFO(TRACE_MODULE_APP, "PDoA 0x%04x Azimuth %d Elevation %d FoM %u \r\n",tag_id_recv, mk_q7_to_s16(azimuth), - mk_q7_to_s16(elevation), fom); + LOG_INFO(TRACE_MODULE_APP, "PDoA 0x%04x Azimuth %d Elevation %d FoM %u distance %d rssi %d\r\n",tag_id_recv, mk_q7_to_s16(azimuth), + mk_q7_to_s16(elevation), fom,tagdist_list[taglist_pos],rssi); allow_flag=0; } - } + } if(resp_tx_flag==0) { OpenUWB(); @@ -487,7 +488,7 @@ extern uint32_t tag_id_authorization_list[1024]; static uint8_t anchordata_bat[TAG_NUM_IN_SYS]; uint8_t anchordata_num = 0; -static int16_t tagdist_list[TAG_NUM_IN_SYS]; + uint16_t state_button[TAG_NUM_IN_SYS]; uint16_t pressure[TAG_NUM_IN_SYS]; -- Gitblit v1.9.3