From 57535b538eeff76c7cf1fd1a26b598d6b74aa5cb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 24 Jan 2024 10:57:16 +1100 Subject: [PATCH] ArduPlane: handle RADIO_STATUS is GCS base class --- ArduPlane/GCS_Mavlink.cpp | 11 ----------- ArduPlane/GCS_Mavlink.h | 5 +++++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index a80e7ab44f..c57d3e22f4 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1227,17 +1227,6 @@ void GCS_MAVLINK_Plane::handle_message(const mavlink_message_t &msg) { switch (msg.msgid) { - case MAVLINK_MSG_ID_RADIO: - case MAVLINK_MSG_ID_RADIO_STATUS: - { -#if HAL_LOGGING_ENABLED - handle_radio_status(msg, plane.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: #if AP_TERRAIN_AVAILABLE diff --git a/ArduPlane/GCS_Mavlink.h b/ArduPlane/GCS_Mavlink.h index d3c476318b..7543dea8c3 100644 --- a/ArduPlane/GCS_Mavlink.h +++ b/ArduPlane/GCS_Mavlink.h @@ -4,6 +4,7 @@ #include #include #include "quadplane.h" +#include "defines.h" class GCS_MAVLINK_Plane : public GCS_MAVLINK { @@ -18,6 +19,10 @@ protected: uint32_t telem_delay() const override; +#if HAL_LOGGING_ENABLED + uint32_t log_radio_bit() const override { return MASK_LOG_PM; } +#endif + #if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED void handle_mission_set_current(AP_Mission &mission, const mavlink_message_t &msg) override; #endif