Moved telemetry processing to module interface
This commit is contained in:
committed by
Raphael Coeffic
parent
39c61408e7
commit
246840f065
@@ -40,24 +40,8 @@ struct FlySkySerialPulsesData {
|
||||
uint8_t state;
|
||||
uint8_t timeout;
|
||||
uint8_t esc_state;
|
||||
uint8_t telemetry[64];
|
||||
uint8_t telemetry_index;
|
||||
} __attribute__((__packed__));
|
||||
|
||||
enum AfhdsSpecialChars {
|
||||
END = 0xC0, //Frame end
|
||||
START = END,
|
||||
ESC_END = 0xDC, //Escaped frame end - in case END occurs in fame then ESC ESC_END must be used
|
||||
ESC = 0xDB, //Escaping character
|
||||
ESC_ESC = 0xDD, //Escaping character in case ESC occurs in fame then ESC ESC_ESC must be used
|
||||
};
|
||||
|
||||
|
||||
class afhds2 {
|
||||
public:
|
||||
afhds2();
|
||||
virtual ~afhds2();
|
||||
};
|
||||
|
||||
extern const etx_serial_init afhds2SerialInitParams;
|
||||
extern const etx_module_driver_t Afhds2InternalDriver;
|
||||
|
||||
Reference in New Issue
Block a user