From ae19d032ce73fdbf4eb7c375079244131b24babb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 6 Feb 2024 10:14:53 +1100 Subject: [PATCH] AP_RCProtocol: use constructor from parent class in ibus --- libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp | 5 ----- libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp index bf286f8985..d35d12d0e2 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp @@ -20,11 +20,6 @@ #include "AP_RCProtocol_IBUS.h" -// constructor -AP_RCProtocol_IBUS::AP_RCProtocol_IBUS(AP_RCProtocol &_frontend) : - AP_RCProtocol_Backend(_frontend) -{} - // decode a full IBUS frame bool AP_RCProtocol_IBUS::ibus_decode(const uint8_t frame[IBUS_FRAME_SIZE], uint16_t *values, bool *ibus_failsafe) { diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h b/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h index b3e7597816..179eb22e22 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h +++ b/libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h @@ -30,7 +30,8 @@ class AP_RCProtocol_IBUS : public AP_RCProtocol_Backend { public: - AP_RCProtocol_IBUS(AP_RCProtocol &_frontend); + using AP_RCProtocol_Backend::AP_RCProtocol_Backend; + void process_pulse(uint32_t width_s0, uint32_t width_s1) override; void process_byte(uint8_t byte, uint32_t baudrate) override; private: