AP_RCProtocol: use constructor from parent class in ibus

This commit is contained in:
Peter Barker 2024-02-06 10:14:53 +11:00 committed by Andrew Tridgell
parent 5b6d86c278
commit ae19d032ce
2 changed files with 2 additions and 6 deletions

View File

@ -20,11 +20,6 @@
#include "AP_RCProtocol_IBUS.h" #include "AP_RCProtocol_IBUS.h"
// constructor
AP_RCProtocol_IBUS::AP_RCProtocol_IBUS(AP_RCProtocol &_frontend) :
AP_RCProtocol_Backend(_frontend)
{}
// decode a full IBUS frame // decode a full IBUS frame
bool AP_RCProtocol_IBUS::ibus_decode(const uint8_t frame[IBUS_FRAME_SIZE], uint16_t *values, bool *ibus_failsafe) bool AP_RCProtocol_IBUS::ibus_decode(const uint8_t frame[IBUS_FRAME_SIZE], uint16_t *values, bool *ibus_failsafe)
{ {

View File

@ -30,7 +30,8 @@
class AP_RCProtocol_IBUS : public AP_RCProtocol_Backend class AP_RCProtocol_IBUS : public AP_RCProtocol_Backend
{ {
public: 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_pulse(uint32_t width_s0, uint32_t width_s1) override;
void process_byte(uint8_t byte, uint32_t baudrate) override; void process_byte(uint8_t byte, uint32_t baudrate) override;
private: private: