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 复制 |
| | |
| | | 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; |
| | |
| | | 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) |
| | |
| | | } |
| | | 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; |