WiP
This commit is contained in:
@@ -75,10 +75,17 @@ constexpr uint8_t TELEMETRY_TIMEOUT10ms = 100; // 1 second
|
||||
extern uint8_t telemetryRxBuffer[TELEMETRY_RX_PACKET_SIZE];
|
||||
extern uint8_t telemetryRxBufferCount;
|
||||
|
||||
//TODO: use module scoped buffers instead
|
||||
uint8_t* getTelemetryRxBuffer(uint8_t moduleIdx);
|
||||
uint8_t& getTelemetryRxBufferCount(uint8_t moduleIdx);
|
||||
|
||||
// Set alternative telemetry input
|
||||
void telemetrySetGetByte(void* ctx, int (*fct)(void*, uint8_t*));
|
||||
|
||||
// Set telemetry mirror callback
|
||||
void telemetrySetMirrorCb(void* ctx, void (*fct)(void*, uint8_t));
|
||||
|
||||
// Mirror telemetry byte
|
||||
void telemetryMirrorSend(uint8_t data);
|
||||
|
||||
#define TELEMETRY_AVERAGE_COUNT 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user