chen
2024-11-01 631a90c1116fa33382a88a747c89bf761bc0fa9b
dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c
copy from dualboots_Gai_youhua_anbang_tag/keil/customboot/include/components/app/src/ranging_ss_twr_task.c copy to dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c
文件从 dualboots_Gai_youhua_anbang_tag/keil/customboot/include/components/app/src/ranging_ss_twr_task.c 复制
@@ -122,6 +122,7 @@
   double tof_f;
     int64_t Tround;
      int64_t Treply;
      int error;
void ranging_handler(wsfEventMask_t event, const void *param)
{
    const wsfMsgHdr_t *msg = (const wsfMsgHdr_t *)param;
@@ -153,7 +154,7 @@
                    uint16_t seq_num = READ_SHORT(&ind->tx_data[2]);
                    LOG_INFO(TRACE_MODULE_APP | TRACE_NO_OPTION, "\r\n");
                    LOG_INFO(TRACE_MODULE_APP, "SS-TWR Initiator SEQ NUM %u\r\n", seq_num);
                    LOG_INFO(TRACE_MODULE_APP, "SS-TWR Initiator SEQ NUM %u and error is %d\r\n", seq_num,error);
                    LOG_INFO(TRACE_MODULE_APP, "[TX][%u] Poll\r\n", ind->tx_len);
                }
                else if (ind->ranging_stage == RANGING_RESPONSE)
@@ -366,7 +367,9 @@
                }
                else
                {
                    LOG_INFO(TRACE_MODULE_APP, "UWB RX fail  0x%04x\r\n", ind->status);
                              error++;
                    //LOG_INFO(TRACE_MODULE_APP, "UWB RX fail 0x%04x\r\n", ind->status);yuan
                           LOG_INFO(TRACE_MODULE_APP, "UWB RX fail num is %d \r\n", error);
                }
            }
            break;