ardupilot/libraries/AP_Frsky_Telem/AP_Frsky_D.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
584 B
C
Raw Normal View History

2020-09-28 01:31:38 -03:00
#pragma once
#include "AP_Frsky_Backend.h"
#if AP_FRSKY_D_TELEM_ENABLED
class AP_Frsky_D : public AP_Frsky_Backend
{
2020-09-28 01:31:38 -03:00
public:
using AP_Frsky_Backend::AP_Frsky_Backend;
protected:
void send() override;
uint32_t initial_baud() const override
{
return 9600;
}
2020-09-28 01:31:38 -03:00
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);
2020-09-28 01:31:38 -03:00
struct {
uint32_t last_200ms_frame;
uint32_t last_1000ms_frame;
} _D;
};
#endif // AP_FRSKY_D_TELEM_ENABLED