From 4554dd28d37653aa185c5e6ea0a20c50fe8a172e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 18 Nov 2024 10:06:12 +1100 Subject: [PATCH] AP_DroneCAN: document CANS (Can Bus Statistics) log message --- libraries/AP_DroneCAN/AP_DroneCAN.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libraries/AP_DroneCAN/AP_DroneCAN.cpp b/libraries/AP_DroneCAN/AP_DroneCAN.cpp index 58cdc7e1b6..c0707ebe79 100644 --- a/libraries/AP_DroneCAN/AP_DroneCAN.cpp +++ b/libraries/AP_DroneCAN/AP_DroneCAN.cpp @@ -1953,6 +1953,24 @@ void AP_DroneCAN::logging(void) return; } const auto &s = *stats; + +// @LoggerMessage: CANS +// @Description: CAN Bus Statistics +// @Field: TimeUS: Time since system startup +// @Field: I: driver index +// @Field: T: transmit success count +// @Field: Trq: transmit request count +// @Field: Trej: transmit reject count +// @Field: Tov: transmit overflow count +// @Field: Tto: transmit timeout count +// @Field: Tab: transmit abort count +// @Field: R: receive count +// @Field: Rov: receive overflow count +// @Field: Rer: receive error count +// @Field: Bo: bus offset error count +// @Field: Etx: ESC successful send count +// @Field: Stx: Servo successful send count +// @Field: Ftx: ESC/Servo failed-to-send count AP::logger().WriteStreaming("CANS", "TimeUS,I,T,Trq,Trej,Tov,Tto,Tab,R,Rov,Rer,Bo,Etx,Stx,Ftx", "s#-------------",