mirror of https://github.com/ArduPilot/ardupilot
AP_RCProtocol: use constructor from parent class in ibus
This commit is contained in:
parent
5b6d86c278
commit
ae19d032ce
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue