AP_IOMCU: log number of errors reading status page

This commit is contained in:
Peter Barker 2022-08-07 16:55:35 +10:00 committed by Andrew Tridgell
parent 605f42947e
commit b580c873a8

View File

@ -362,14 +362,16 @@ void AP_IOMCU::write_log()
// @LoggerMessage: IOMC // @LoggerMessage: IOMC
// @Description: IOMCU diagnostic information // @Description: IOMCU diagnostic information
// @Field: TimeUS: Time since system startup // @Field: TimeUS: Time since system startup
// @Field: RSErr: Status Read error count (zeroed on successful read)
// @Field: Mem: Free memory // @Field: Mem: Free memory
// @Field: TS: IOMCU uptime // @Field: TS: IOMCU uptime
// @Field: NPkt: Number of packets received by IOMCU // @Field: NPkt: Number of packets received by IOMCU
// @Field: Nerr: Protocol failures on MCU side // @Field: Nerr: Protocol failures on MCU side
// @Field: Nerr2: Reported number of failures on IOMCU side // @Field: Nerr2: Reported number of failures on IOMCU side
// @Field: NDel: Number of delayed packets received by MCU // @Field: NDel: Number of delayed packets received by MCU
AP::logger().WriteStreaming("IOMC", "TimeUS,Mem,TS,NPkt,Nerr,Nerr2,NDel", "QHIIIII", AP::logger().WriteStreaming("IOMC", "TimeUS,RSErr,Mem,TS,NPkt,Nerr,Nerr2,NDel", "QHHIIIII",
AP_HAL::micros64(), AP_HAL::micros64(),
read_status_errors,
reg_status.freemem, reg_status.freemem,
reg_status.timestamp_ms, reg_status.timestamp_ms,
reg_status.total_pkts, reg_status.total_pkts,