From bb542ca39ac0022fdadad0c82d4d583ae0f21169 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 13 Aug 2019 14:23:42 +1000 Subject: [PATCH] GCS_MAVLink: queue AUTOPILOT_VERSION for sending instead of direct-send Also allows the message to be requested for streaming or with REQUEST_MESSAGE We weren't checking for buffer space before sending this out, so it was a possible source of corruption. --- libraries/GCS_MAVLink/GCS_Common.cpp | 10 ++++++++-- libraries/GCS_MAVLink/ap_message.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 737e3e069d..f17511b68c 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -797,6 +797,7 @@ ap_message GCS_MAVLINK::mavlink_id_to_ap_message_id(const uint32_t mavlink_id) c { MAVLINK_MSG_ID_AOA_SSA, MSG_AOA_SSA}, { MAVLINK_MSG_ID_DEEPSTALL, MSG_LANDING}, { MAVLINK_MSG_ID_EXTENDED_SYS_STATE, MSG_EXTENDED_SYS_STATE}, + { MAVLINK_MSG_ID_AUTOPILOT_VERSION, MSG_AUTOPILOT_VERSION}, }; for (uint8_t i=0; i