mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Bsongis/crossfire refactoring (#3613)
* Crossfire refactoring * Crossfire script now displaying fields * Crossfire script now displaying text selection values
This commit is contained in:
parent
ab58151f2a
commit
53b51cac94
16 changed files with 289 additions and 178 deletions
|
@ -410,7 +410,8 @@ void telemetryInit(uint8_t protocol)
|
|||
else if (protocol == PROTOCOL_PULSES_CROSSFIRE) {
|
||||
telemetryPortInit(CROSSFIRE_BAUDRATE);
|
||||
#if defined(LUA)
|
||||
luaOutputTelemetryPacket.crossfire.clear();
|
||||
outputTelemetryBufferSize = 0;
|
||||
outputTelemetryBufferTrigger = 0;
|
||||
#endif
|
||||
telemetryPortSetDirectionOutput();
|
||||
}
|
||||
|
@ -422,7 +423,8 @@ void telemetryInit(uint8_t protocol)
|
|||
else {
|
||||
telemetryPortInit(FRSKY_SPORT_BAUDRATE);
|
||||
#if defined(LUA)
|
||||
luaOutputTelemetryPacket.sport.clear();
|
||||
outputTelemetryBufferSize = 0;
|
||||
outputTelemetryBufferTrigger = 0x7E;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -467,7 +469,10 @@ void logTelemetryWriteByte(uint8_t data)
|
|||
}
|
||||
#endif
|
||||
|
||||
uint8_t outputTelemetryBuffer[TELEMETRY_OUTPUT_FIFO_SIZE] __DMA;
|
||||
uint8_t outputTelemetryBufferSize = 0;
|
||||
uint8_t outputTelemetryBufferTrigger = 0;
|
||||
|
||||
#if defined(LUA)
|
||||
Fifo<LuaTelemetryPacket, LUA_TELEMETRY_FIFO_SIZE> * luaInputTelemetryFifo = NULL;
|
||||
LuaTelemetryPacket luaOutputTelemetryPacket;
|
||||
Fifo<uint8_t, LUA_TELEMETRY_INPUT_FIFO_SIZE> * luaInputTelemetryFifo = NULL;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue