ArduPlane: 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 4c2cc511e6
commit 57535b538e
2 changed files with 5 additions and 11 deletions

View File

@ -1227,17 +1227,6 @@ void GCS_MAVLINK_Plane::handle_message(const mavlink_message_t &msg)
{ {
switch (msg.msgid) { 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_DATA:
case MAVLINK_MSG_ID_TERRAIN_CHECK: case MAVLINK_MSG_ID_TERRAIN_CHECK:
#if AP_TERRAIN_AVAILABLE #if AP_TERRAIN_AVAILABLE

View File

@ -4,6 +4,7 @@
#include <AP_Logger/AP_Logger.h> #include <AP_Logger/AP_Logger.h>
#include <AP_Airspeed/AP_Airspeed_config.h> #include <AP_Airspeed/AP_Airspeed_config.h>
#include "quadplane.h" #include "quadplane.h"
#include "defines.h"
class GCS_MAVLINK_Plane : public GCS_MAVLINK class GCS_MAVLINK_Plane : public GCS_MAVLINK
{ {
@ -18,6 +19,10 @@ protected:
uint32_t telem_delay() const override; 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 #if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED
void handle_mission_set_current(AP_Mission &mission, const mavlink_message_t &msg) override; void handle_mission_set_current(AP_Mission &mission, const mavlink_message_t &msg) override;
#endif #endif