From e5aeeedeff73d684c3195542be9abffb95fba526 Mon Sep 17 00:00:00 2001 From: Loki077 Date: Fri, 30 Aug 2024 15:25:59 +1000 Subject: [PATCH] AP_UAVCAN: upadte_rpm pass error_count To be able to log error_count we need to pass it in updat_rpm. Currawong ESC stores error information in escstatus->error_count SW-329 --- libraries/AP_UAVCAN/AP_UAVCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN.cpp b/libraries/AP_UAVCAN/AP_UAVCAN.cpp index 0d936b08c4..42a8dd88f5 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN.cpp +++ b/libraries/AP_UAVCAN/AP_UAVCAN.cpp @@ -1075,7 +1075,7 @@ void AP_UAVCAN::handle_ESC_status(AP_UAVCAN* ap_uavcan, uint8_t node_id, const E .current = cb.msg->current, }; - ap_uavcan->update_rpm(esc_index, cb.msg->rpm); + ap_uavcan->update_rpm(esc_index, cb.msg->rpm, cb.msg->error_count); ap_uavcan->update_telem_data(esc_index, t, AP_ESC_Telem_Backend::TelemetryType::CURRENT | AP_ESC_Telem_Backend::TelemetryType::VOLTAGE