From e5b634cdd04beafc6c96782614676f498f531f98 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 7 Apr 2020 12:55:39 +1000 Subject: [PATCH] AP_IOMCU: add IOMC log message documentation --- libraries/AP_IOMCU/AP_IOMCU.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/AP_IOMCU/AP_IOMCU.cpp b/libraries/AP_IOMCU/AP_IOMCU.cpp index 97f212e8a9..3353110cf5 100644 --- a/libraries/AP_IOMCU/AP_IOMCU.cpp +++ b/libraries/AP_IOMCU/AP_IOMCU.cpp @@ -335,6 +335,15 @@ void AP_IOMCU::read_status() if (now - last_log_ms >= 1000U) { last_log_ms = now; if (AP_Logger::get_singleton()) { +// @LoggerMessage: IOMC +// @Description: IOMCU diagnostic information +// @Field: TimeUS: Time since system startup +// @Field: Mem: Free memory +// @Field: TS: IOMCU uptime +// @Field: NPkt: Number of packets received by IOMCU +// @Field: Nerr: Protocol failures on MCU side +// @Field: Nerr2: Reported number of failures on IOMCU side +// @Field: NDel: Number of delayed packets received by MCU AP::logger().Write("IOMC", "TimeUS,Mem,TS,NPkt,Nerr,Nerr2,NDel", "QHIIIII", AP_HAL::micros64(), reg_status.freemem,