diff --git a/companion/src/eeprominterface.cpp b/companion/src/eeprominterface.cpp index b00b7c32c..b6fa058e0 100644 --- a/companion/src/eeprominterface.cpp +++ b/companion/src/eeprominterface.cpp @@ -109,6 +109,10 @@ RawSourceRange RawSource::getRange(bool singleprec) result.decimals = 1; result.max = 25.5; break; + case TELEMETRY_SOURCE_TX_TIME: + result.step = 1; + result.max = 24*60 - 1; + break; case TELEMETRY_SOURCE_TIMER1: case TELEMETRY_SOURCE_TIMER2: result.step = singleprec ? 5 : 1; @@ -258,7 +262,7 @@ QString RawSource::toString() }; static const QString telemetry[] = { - QObject::tr("Batt"), QObject::tr("Timer1"), QObject::tr("Timer2"), + QObject::tr("Batt"), QObject::tr("Time"), QObject::tr("Timer1"), QObject::tr("Timer2"), QObject::tr("SWR"), QObject::tr("RSSI Tx"), QObject::tr("RSSI Rx"), QObject::tr("Rx Batt"), QObject::tr("A1"), QObject::tr("A2"), QObject::tr("A3"), QObject::tr("A4"), QObject::tr("Alt"), QObject::tr("Rpm"), QObject::tr("Fuel"), QObject::tr("T1"), QObject::tr("T2"), @@ -269,7 +273,7 @@ QString RawSource::toString() QObject::tr("A1-"), QObject::tr("A2-"), QObject::tr("A3-"), QObject::tr("A4-"), QObject::tr("Alt-"), QObject::tr("Alt+"), QObject::tr("Rpm+"), QObject::tr("T1+"), QObject::tr("T2+"), QObject::tr("Speed+"), QObject::tr("Dist+"), QObject::tr("AirSpeed+"), QObject::tr("Cell-"), QObject::tr("Cells-"), QObject::tr("Vfas-"), QObject::tr("Curr+"), QObject::tr("Powr+"), - QObject::tr("ACC"), QObject::tr("Time"), + QObject::tr("ACC"), QObject::tr("GPS Time"), }; static const QString logicalSwitches[] = { diff --git a/companion/src/eeprominterface.h b/companion/src/eeprominterface.h index 9eb748ffa..4a150066b 100644 --- a/companion/src/eeprominterface.h +++ b/companion/src/eeprominterface.h @@ -208,6 +208,7 @@ enum ThrottleSource { enum TelemetrySource { TELEMETRY_SOURCE_TX_BATT, + TELEMETRY_SOURCE_TX_TIME, TELEMETRY_SOURCE_TIMER1, TELEMETRY_SOURCE_TIMER2, TELEMETRY_SOURCE_SWR, diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 5b0ba85b7..1bc8f2dd4 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -257,15 +257,17 @@ class SourcesConversionTable: public ConversionTable { for (int i=0; i= 216 && IS_ARM(board)) { + if (i==TELEMETRY_SOURCE_TX_TIME) + val += 5; if (i==TELEMETRY_SOURCE_DTE) val += 5; if (i==TELEMETRY_SOURCE_POWER_MAX)