From 14c9d4e6a3788baf54e7558521a27d6565533231 Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Sat, 12 Feb 2022 07:52:09 -0600 Subject: [PATCH] AP_UAVCAN: add metadata to GetNodeInfo log message --- libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp b/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp index 948b5e9af0..ed4052cd7e 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp +++ b/libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp @@ -527,6 +527,16 @@ void AP_UAVCAN_DNA_Server::handleNodeInfo(uint8_t node_id, uint8_t unique_id[], logged.set(node_id); uint64_t uid[2]; memcpy(uid, unique_id, sizeof(uid)); + // @LoggerMessage: CAND + // @Description: Info from GetNodeInfo request + // @Field: TimeUS: Time since system startup + // @Field: NodeId: Node ID + // @Field: UID1: Hardware ID, part 1 + // @Field: UID2: Hardware ID, part 2 + // @Field: Name: Name string + // @Field: Major: major revision id + // @Field: Minor: minor revision id + // @Field: Version: AP_Periph git hash AP::logger().Write("CAND", "TimeUS,NodeId,UID1,UID2,Name,Major,Minor,Version", "s#------", "F-------", "QBQQZBBI", AP_HAL::micros64(),