diff --git a/companion/src/eeprominterface.h b/companion/src/eeprominterface.h index 8c2218a00..228ae2cb6 100644 --- a/companion/src/eeprominterface.h +++ b/companion/src/eeprominterface.h @@ -260,6 +260,8 @@ enum TelemetrySource { enum RawSourceType { SOURCE_TYPE_NONE, + SOURCE_TYPE_VIRTUAL_INPUT, + SOURCE_TYPE_LUA_INPUT, SOURCE_TYPE_STICK, // and POTS SOURCE_TYPE_ROTARY_ENCODER, SOURCE_TYPE_TRIM, diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index a608b899a..49a552a5f 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -135,6 +135,16 @@ class SourcesConversionTable: public ConversionTable { addConversion(RawSource(SOURCE_TYPE_NONE), val++); } + if (IS_TARANIS(board) && version >= 216) { + for (int i=0; i<32; i++) + addConversion(RawSource(SOURCE_TYPE_VIRTUAL_INPUT, i), val++); + for (int i=0; i<3; i++) { + for (int j=0; j<6; j++) { + addConversion(RawSource(SOURCE_TYPE_LUA_INPUT, i*16+j), val++); + } + } + } + for (int i=0; i<4+MAX_POTS(board); i++) addConversion(RawSource(SOURCE_TYPE_STICK, i), val++);