Blimp: handle RADIO_STATUS is GCS base class

This commit is contained in:
Peter Barker 2024-01-24 10:57:16 +11:00 committed by Andrew Tridgell
parent 57535b538e
commit 81b279758d
2 changed files with 6 additions and 10 deletions

View File

@ -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;

View File

@ -2,6 +2,8 @@
#include <GCS_MAVLink/GCS.h>
#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;