mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
ArduCopter: handle RADIO_STATUS is GCS base class
This commit is contained in:
parent
5e5bca2bba
commit
4c2cc511e6
@ -1485,17 +1485,6 @@ void GCS_MAVLINK_Copter::handle_message(const mavlink_message_t &msg)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case MAVLINK_MSG_ID_RADIO:
|
|
||||||
case MAVLINK_MSG_ID_RADIO_STATUS: // MAV ID: 109
|
|
||||||
{
|
|
||||||
#if HAL_LOGGING_ENABLED
|
|
||||||
handle_radio_status(msg, copter.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
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <GCS_MAVLink/GCS.h>
|
#include <GCS_MAVLink/GCS.h>
|
||||||
#include <AP_Winch/AP_Winch_config.h>
|
#include <AP_Winch/AP_Winch_config.h>
|
||||||
|
#include "defines.h"
|
||||||
|
|
||||||
#ifndef AC_MAVLINK_SOLO_BUTTON_COMMAND_HANDLING_ENABLED
|
#ifndef AC_MAVLINK_SOLO_BUTTON_COMMAND_HANDLING_ENABLED
|
||||||
#define AC_MAVLINK_SOLO_BUTTON_COMMAND_HANDLING_ENABLED 1
|
#define AC_MAVLINK_SOLO_BUTTON_COMMAND_HANDLING_ENABLED 1
|
||||||
@ -57,6 +58,10 @@ protected:
|
|||||||
|
|
||||||
void handle_manual_control_axes(const mavlink_manual_control_t &packet, const uint32_t tnow) override;
|
void handle_manual_control_axes(const mavlink_manual_control_t &packet, const uint32_t tnow) override;
|
||||||
|
|
||||||
|
#if HAL_LOGGING_ENABLED
|
||||||
|
uint32_t log_radio_bit() const override { return MASK_LOG_PM; }
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// sanity check velocity or acceleration vector components are numbers
|
// sanity check velocity or acceleration vector components are numbers
|
||||||
|
Loading…
Reference in New Issue
Block a user