chen
2025-04-24 e53c046d08a448638a56af05ca293310e10b0228
keil/uwb_tag_.c
@@ -194,6 +194,7 @@
extern double distance;
extern uint8_t bat_percent;
uint32_t count1,count2;
extern uint32_t reboot_num;
enum SIMPLE_FSM_T
{
    SIMPLE_IDLE = 0,
@@ -654,6 +655,7 @@
            sleep_timer_start(__MS_TO_32K_CNT(SLEEP_COUNT-rand_temp));//测试
            }else if (rx_buf[MESSAGE_TYPE_IDX] == MBX_RESPONSE&&!memcmp(&rx_buf[TAG_ID_IDX],&dev_id,2)&&rx_buf[GROUP_ID_IDX]==group_id) //判断接收到的数据是否是response数据
                     {   
                        reboot_num=0;//清0复位监测数值
                           memcpy(&rec_nearbaseid,&rx_buf[ANCHOR_ID_IDX],2);
                        rec_tag_index = CmpTagInList(rec_nearbaseid);//当前新来的这包数据插入当前表中的位置索引
                           //rec_nearbasepos=FindNearBasePos(rec_nearbaseid);