From 74d8cf7a8739b57add60804283a457801a0ab865 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 21 Apr 2021 22:19:01 +1000 Subject: [PATCH] GCS_Common: add support for sending COMPONENT_INFORMATION --- libraries/GCS_MAVLink/GCS.h | 2 ++ libraries/GCS_MAVLink/GCS_Common.cpp | 20 ++++++++++++++++++++ libraries/GCS_MAVLink/ap_message.h | 1 + 3 files changed, 23 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index eafb935e9f1324..9fa1f750608d6d 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -396,6 +396,8 @@ class GCS_MAVLINK void send_uavionix_adsb_out_status() const; void send_autopilot_state_for_gimbal_device() const; + void send_component_information() const; + // lock a channel, preventing use by MAVLink void lock(bool _lock) { _locked = _lock; diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 379aea44f03f56..f11eb706ec430c 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1036,6 +1036,7 @@ ap_message GCS_MAVLINK::mavlink_id_to_ap_message_id(const uint32_t mavlink_id) c #if HAL_ADSB_ENABLED { MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_STATUS, MSG_UAVIONIX_ADSB_OUT_STATUS}, #endif + { MAVLINK_MSG_ID_COMPONENT_INFORMATION, MSG_COMPONENT_INFORMATION}, }; for (uint8_t i=0; i