mirror of https://github.com/ArduPilot/ardupilot
36 lines
584 B
C++
36 lines
584 B
C++
#pragma once
|
|
|
|
#include "AP_Frsky_Backend.h"
|
|
|
|
#if AP_FRSKY_D_TELEM_ENABLED
|
|
|
|
class AP_Frsky_D : public AP_Frsky_Backend
|
|
{
|
|
|
|
public:
|
|
|
|
using AP_Frsky_Backend::AP_Frsky_Backend;
|
|
|
|
protected:
|
|
|
|
void send() override;
|
|
uint32_t initial_baud() const override
|
|
{
|
|
return 9600;
|
|
}
|
|
|
|
private:
|
|
|
|
// methods related to the nuts-and-bolts of sending data
|
|
void send_byte(uint8_t value);
|
|
void send_uint16(uint16_t id, uint16_t data);
|
|
|
|
struct {
|
|
uint32_t last_200ms_frame;
|
|
uint32_t last_1000ms_frame;
|
|
} _D;
|
|
|
|
};
|
|
|
|
#endif // AP_FRSKY_D_TELEM_ENABLED
|