From 81b279758d40f152e038c19f79f60488393e4ce4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 24 Jan 2024 10:57:16 +1100 Subject: [PATCH] Blimp: handle RADIO_STATUS is GCS base class --- Blimp/GCS_Mavlink.cpp | 10 ---------- Blimp/GCS_Mavlink.h | 6 ++++++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index 296c9940fe..2c0e92fa26 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -516,16 +516,6 @@ void GCS_MAVLINK_Blimp::handle_message(const mavlink_message_t &msg) { switch (msg.msgid) { - case MAVLINK_MSG_ID_RADIO: - case MAVLINK_MSG_ID_RADIO_STATUS: { // MAV ID: 109 -#if HAL_LOGGING_ENABLED - handle_radio_status(msg, blimp.should_log(MASK_LOG_PM)); -#else - handle_radio_status(msg, false); -#endif - break; - } - case MAVLINK_MSG_ID_TERRAIN_DATA: case MAVLINK_MSG_ID_TERRAIN_CHECK: break; diff --git a/Blimp/GCS_Mavlink.h b/Blimp/GCS_Mavlink.h index 42f2686950..87dad1ceb0 100644 --- a/Blimp/GCS_Mavlink.h +++ b/Blimp/GCS_Mavlink.h @@ -2,6 +2,8 @@ #include +#include "defines.h" + class GCS_MAVLINK_Blimp : public GCS_MAVLINK { @@ -44,6 +46,10 @@ protected: }; virtual MAV_LANDED_STATE landed_state() const override; +#if HAL_LOGGING_ENABLED + uint32_t log_radio_bit() const override { return MASK_LOG_PM; } +#endif + private: void handle_message(const mavlink_message_t &msg) override;