Copter: free allocations in case of allocation failure
[ardupilot.git] / libraries / AP_RCProtocol / AP_RCProtocol_MAVLinkRadio.h
blobcd80f502a3f8702cb77dc7e1da408d4e4e7540fb
2 #pragma once
4 #include "AP_RCProtocol_config.h"
6 #if AP_RCPROTOCOL_MAVLINK_RADIO_ENABLED
8 #include "AP_RCProtocol.h"
11 class AP_RCProtocol_MAVLinkRadio : public AP_RCProtocol_Backend {
12 public:
14 using AP_RCProtocol_Backend::AP_RCProtocol_Backend;
16 // update from mavlink messages
17 void update_radio_rc_channels(const mavlink_radio_rc_channels_t* packet) override;
20 #endif // AP_RCPROTOCOL_MAVLINK_RADIO_ENABLED