CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Frsky_Telem/AP_Frsky_D.h
Views: 1798
1
#pragma once
2
3
#include "AP_Frsky_Backend.h"
4
5
#if AP_FRSKY_D_TELEM_ENABLED
6
7
class AP_Frsky_D : public AP_Frsky_Backend
8
{
9
10
public:
11
12
using AP_Frsky_Backend::AP_Frsky_Backend;
13
14
protected:
15
16
void send() override;
17
uint32_t initial_baud() const override
18
{
19
return 9600;
20
}
21
22
private:
23
24
// methods related to the nuts-and-bolts of sending data
25
void send_byte(uint8_t value);
26
void send_uint16(uint16_t id, uint16_t data);
27
28
struct {
29
uint32_t last_200ms_frame;
30
uint32_t last_1000ms_frame;
31
} _D;
32
33
};
34
35
#endif // AP_FRSKY_D_TELEM_ENABLED
36
37