Whereby most of the pulses / telemetry code is actually split by module index, it seems a couple of things rely on one single global variable called telemetryProtocol:
telemetry/telemetry.cpp:uint8_t telemetryProtocol = 255;
telemetry/telemetry.h:extern uint8_t telemetryProtocol;
For example in lua/api_general.cpp:
static int luaCrossfireTelemetryPush(lua_State * L)
{
if (telemetryProtocol != PROTOCOL_TELEMETRY_CROSSFIRE) {
lua_pushnil(L);
return 1;
}
This prevents however from flexibly using 2 different protocols to be able to achieve a redundant setup (for instance 2.4GHz FrSky D16 + 900MHz Crossfire).
Whereby most of the pulses / telemetry code is actually split by module index, it seems a couple of things rely on one single global variable called
telemetryProtocol:For example in
lua/api_general.cpp:This prevents however from flexibly using 2 different protocols to be able to achieve a redundant setup (for instance 2.4GHz FrSky D16 + 900MHz Crossfire).