mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Crossfire telemetry protocol start
This commit is contained in:
parent
5a5f192451
commit
a3c175f537
21 changed files with 396 additions and 73 deletions
|
@ -21,6 +21,8 @@
|
|||
#include "opentx.h"
|
||||
|
||||
uint8_t telemetryStreaming = 0;
|
||||
uint8_t telemetryRxBuffer[TELEMETRY_RX_PACKET_SIZE]; // Receive buffer. 9 bytes (full packet), worst case 18 bytes with byte-stuffing (+1)
|
||||
uint8_t telemetryRxBufferCount = 0;
|
||||
|
||||
#if defined(WS_HOW_HIGH)
|
||||
uint8_t wshhStreaming = 0;
|
||||
|
@ -60,6 +62,10 @@ lcdint_t applyChannelRatio(source_t channel, lcdint_t val)
|
|||
#if defined(CPUSTM32)
|
||||
void processTelemetryData(uint8_t data)
|
||||
{
|
||||
#if defined(CROSSFIRE)
|
||||
if (telemetryProtocol == PROTOCOL_PULSES_CROSSFIRE)
|
||||
processCrossfireTelemetryData(data);
|
||||
#endif
|
||||
processFrskyTelemetryData(data);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue