Skip to content

Allow 2 types of telemetry protocols to run in parallel #944

@raphaelcoeffic

Description

@raphaelcoeffic

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions