diff --git a/companion/src/firmwares/io_data.cpp b/companion/src/firmwares/io_data.cpp index a958750d8..531eefdd1 100644 --- a/companion/src/firmwares/io_data.cpp +++ b/companion/src/firmwares/io_data.cpp @@ -139,9 +139,6 @@ void FlightModeData::clear(const int phaseIdx) for (int i = 0; i < CPN_MAX_GVARS; i++) { gvars[i] = linkedGVarFlightModeZero(phaseIdx); } - for (int i = 0; i < CPN_MAX_ENCODERS; i++) { - rotaryEncoders[i] = linkedREncFlightModeZero(phaseIdx); - } } QString FlightModeData::nameToString(int phaseIdx) const @@ -168,10 +165,6 @@ bool FlightModeData::isEmpty(int phaseIdx) const if (!isGVarEmpty(phaseIdx, i)) return false; } - for (int i = 0; i < CPN_MAX_ENCODERS; i++) { - if (!isREncEmpty(phaseIdx, i)) - return false; - } return true; } @@ -182,13 +175,6 @@ bool FlightModeData::isGVarEmpty(int phaseIdx, int gvIdx) const return false; } -bool FlightModeData::isREncEmpty(int phaseIdx, int reIdx) const -{ - if ((phaseIdx == 0 && rotaryEncoders[reIdx] == 0) || (phaseIdx != 0 && rotaryEncoders[reIdx] == linkedREncFlightModeZero(phaseIdx))) - return true; - return false; -} - int FlightModeData::linkedFlightModeZero(int phaseIdx, int maxOwnValue) const { if (phaseIdx == 0) @@ -200,8 +186,3 @@ int FlightModeData::linkedGVarFlightModeZero(int phaseIdx) const { return linkedFlightModeZero(phaseIdx, GVAR_MAX_VALUE); } - -int FlightModeData::linkedREncFlightModeZero(int phaseIdx) const -{ - return linkedFlightModeZero(phaseIdx, RENC_MAX_VALUE); -} diff --git a/companion/src/firmwares/io_data.h b/companion/src/firmwares/io_data.h index 05136f210..95e07e389 100644 --- a/companion/src/firmwares/io_data.h +++ b/companion/src/firmwares/io_data.h @@ -173,10 +173,8 @@ class FlightModeData { void convert(RadioDataConversionState & cstate); bool isEmpty(int phaseIdx) const; bool isGVarEmpty(int phaseIdx, int gvIdx) const; - bool isREncEmpty(int phaseIdx, int reIdx) const; int linkedFlightModeZero(int phaseIdx, int maxOwnValue) const; int linkedGVarFlightModeZero(int phaseIdx) const; - int linkedREncFlightModeZero(int phaseIdx) const; }; class SwashRingData { diff --git a/companion/src/firmwares/modeldata.cpp b/companion/src/firmwares/modeldata.cpp index b72cc328a..a06bf013d 100644 --- a/companion/src/firmwares/modeldata.cpp +++ b/companion/src/firmwares/modeldata.cpp @@ -306,39 +306,6 @@ int ModelData::getGVarValue(int phaseIdx, int gvarIdx) return flightModeData[0].gvars[gvarIdx]; // circular linked so return FM0 value } -bool ModelData::isREncLinked(int phaseIdx, int reIdx) -{ - return flightModeData[phaseIdx].rotaryEncoders[reIdx] > RENC_MAX_VALUE; -} - -bool ModelData::isREncLinkedCircular(int phaseIdx, int reIdx) -{ - for (int i = 0; i < CPN_MAX_FLIGHT_MODES; i++) { - int val = flightModeData[phaseIdx].rotaryEncoders[reIdx]; - if (phaseIdx == 0 || val <= RENC_MAX_VALUE) - return false; - int nextPhase = val - (RENC_MAX_VALUE + 1); - if (nextPhase >= phaseIdx) - nextPhase += 1; - phaseIdx = nextPhase; - } - return true; -} - -int ModelData::getREncValue(int phaseIdx, int reIdx) -{ - for (int i = 0; i < CPN_MAX_FLIGHT_MODES; i++) { - int val = flightModeData[phaseIdx].rotaryEncoders[reIdx]; - if (phaseIdx == 0 || val <= RENC_MAX_VALUE) - return val; - int nextPhase = val - (RENC_MAX_VALUE + 1); - if (nextPhase >= phaseIdx) - nextPhase += 1; - phaseIdx = nextPhase; - } - return flightModeData[0].rotaryEncoders[reIdx]; // circular linked so return FM0 value -} - void ModelData::setTrimValue(int phaseIdx, int trimIdx, int value) { for (uint8_t i = 0; i < CPN_MAX_FLIGHT_MODES; i++) { @@ -1255,18 +1222,6 @@ void ModelData::setGVarFlightModeIndexToValue(const int phaseIdx, const int gvar flightModeData[phaseIdx].gvars[gvarIdx] = linkedFlightModeIndexToValue(phaseIdx, useFmIdx, GVAR_MAX_VALUE); } -int ModelData::getREncFlightModeIndex(const int phaseIdx, const int reIdx) -{ - if (!isREncLinked(phaseIdx, reIdx)) - return -1; - return (linkedFlightModeValueToIndex(phaseIdx, flightModeData[phaseIdx].rotaryEncoders[reIdx], RENC_MAX_VALUE)); -} - -void ModelData::setREncFlightModeIndexToValue(const int phaseIdx, const int reIdx, const int useFmIdx) -{ - flightModeData[phaseIdx].rotaryEncoders[reIdx] = linkedFlightModeIndexToValue(phaseIdx, useFmIdx, RENC_MAX_VALUE); -} - bool ModelData::isExpoParent(const int index) { const ExpoData &ed = expoData[index]; diff --git a/companion/src/firmwares/modeldata.h b/companion/src/firmwares/modeldata.h index 93e98588e..dbac55f61 100644 --- a/companion/src/firmwares/modeldata.h +++ b/companion/src/firmwares/modeldata.h @@ -229,12 +229,6 @@ class ModelData { int getGVarFlightModeIndex(const int phaseIdx, const int gvarIdx); void setGVarFlightModeIndexToValue(const int phaseIdx, const int gvarIdx, const int useFmIdx); - bool isREncLinked(int phaseIdx, int reIdx); - bool isREncLinkedCircular(int phaseIdx, int reIdx); - int getREncValue(int phaseIdx, int reIdx); - int getREncFlightModeIndex(const int phaseIdx, const int reIdx); - void setREncFlightModeIndexToValue(const int phaseIdx, const int reIdx, const int useFmIdx); - ModelData removeGlobalVars(); int linkedFlightModeIndexToValue(const int phaseIdx, const int useFmIdx, const int maxOwnValue); diff --git a/companion/src/modeledit/flightmodes.cpp b/companion/src/modeledit/flightmodes.cpp index 790ba1780..5d8763a16 100644 --- a/companion/src/modeledit/flightmodes.cpp +++ b/companion/src/modeledit/flightmodes.cpp @@ -283,10 +283,6 @@ void FlightModePanel::update() updateGVar(i); } - for (int i = 0; i < reCount; i++) { - updateRotaryEncoder(i); - } - emit nameModified(); } @@ -326,20 +322,6 @@ void FlightModePanel::setGVSB(QDoubleSpinBox * sb, int min, int max, int val) sb->setValue(val * mul); } -void FlightModePanel::updateRotaryEncoder(int index) -{ - lock = true; - if (phaseIdx > 0) { - if (model->isREncLinked(phaseIdx, index)) - reUse[index]->setCurrentIndex(phase.rotaryEncoders[index] - RENC_MAX_VALUE); - else - reUse[index]->setCurrentIndex(0); - } - reValues[index]->setDisabled(model->isREncLinked(phaseIdx, index)); - reValues[index]->setValue(model->getREncValue(phaseIdx, index)); - lock = false; -} - // TODO: pull units from GVarData void FlightModePanel::populateGvarUnitCB(QComboBox * cb) { @@ -542,36 +524,6 @@ void FlightModePanel::phaseGVPopupToggled(bool checked) } } -void FlightModePanel::phaseREValue_editingFinished() -{ - if (!lock) { - QSpinBox *spinBox = qobject_cast(sender()); - int re = spinBox->property("index").toInt(); - phase.rotaryEncoders[re] = spinBox->value(); - emit modified(); - } -} - -void FlightModePanel::phaseREUse_currentIndexChanged(int index) -{ - if (!lock) { - lock = true; - QComboBox *comboBox = qobject_cast(sender()); - int re = comboBox->property("index").toInt(); - if (index == 0) { - phase.rotaryEncoders[re] = 0; - } - else { - phase.rotaryEncoders[re] = RENC_MAX_VALUE + index; ; - } - update(); - if (model->isREncLinkedCircular(phaseIdx, re)) - QMessageBox::warning(this, "Companion", tr("Warning: Rotary encoder links back to itself. Flight Mode 0 value used.")); - emit modified(); - lock = false; - } -} - void FlightModePanel::phaseTrimUse_currentIndexChanged(int index) { if (!lock) { @@ -702,9 +654,6 @@ void FlightModePanel::cmClear() for (int i = 0; i < gvCount; i++) { phase.gvars[i] = phase.linkedGVarFlightModeZero(phaseIdx); } - for (int i = 0; i < reCount; i++) { - phase.rotaryEncoders[i] = phase.linkedREncFlightModeZero(phaseIdx); - } } model->updateAllReferences(ModelData::REF_UPD_TYPE_FLIGHT_MODE, ModelData::REF_UPD_ACT_CLEAR, phaseIdx); @@ -724,9 +673,6 @@ void FlightModePanel::cmClearAll() for (int i = 0; i < gvCount; i++) { fm->gvars[i] = fm->linkedGVarFlightModeZero(j); } - for (int i = 0; i < reCount; i++) { - fm->rotaryEncoders[i] = fm->linkedREncFlightModeZero(j); - } model->updateAllReferences(ModelData::REF_UPD_TYPE_FLIGHT_MODE, ModelData::REF_UPD_ACT_CLEAR, j); } @@ -796,18 +742,6 @@ void FlightModePanel::cmDelete() model->setGVarFlightModeIndexToValue(j, i, 0); } } - - for (int i = 0; i < reCount; i++) { - if (model->isREncLinked(j, i)) { - int idx = model->getREncFlightModeIndex(j, i); - if (phaseIdx == 0 && j == 0) - model->setREncFlightModeIndexToValue(j, i, j); - else if (idx > phaseIdx) - model->setREncFlightModeIndexToValue(j, i, idx - 1); - else if (idx == phaseIdx) - model->setREncFlightModeIndexToValue(j, i, 0); - } - } } model->updateAllReferences(ModelData::REF_UPD_TYPE_FLIGHT_MODE, ModelData::REF_UPD_ACT_SHIFT, phaseIdx, 0, -1); @@ -849,16 +783,6 @@ void FlightModePanel::cmInsert() model->setGVarFlightModeIndexToValue(j, i, idx + 1); } } - - for (int i = 0; i < reCount; i++) { - if (model->isREncLinked(j, i)) { - int idx = model->getREncFlightModeIndex(j, i); - if (phaseIdx == 0 && j == 1) - model->setREncFlightModeIndexToValue(j, i, j); - else if (idx >= phaseIdx) - model->setREncFlightModeIndexToValue(j, i, idx + 1); - } - } } model->updateAllReferences(ModelData::REF_UPD_TYPE_FLIGHT_MODE, ModelData::REF_UPD_ACT_SHIFT, phaseIdx, 0, 1); @@ -903,15 +827,6 @@ void FlightModePanel::cmPaste() } } - // TODO fix up linked REs but need to know source FM index to make adjustments - for (int i = 0; i < reCount; i++) { - if (model->isREncLinked(phaseIdx, i)) { - int linkedidx = model->getREncFlightModeIndex(phaseIdx, i); - if (phaseIdx == 0 || linkedidx == phaseIdx) - model->setREncFlightModeIndexToValue(phaseIdx, i, phaseIdx); - } - } - emit datachanged(); emit modified(); } @@ -978,28 +893,6 @@ void FlightModePanel::swapData(int idx1, int idx2) } } - for (int i = 0; i < reCount; i++) { - if (model->isREncLinked(idx1, i)) { - int linkedidx = model->getREncFlightModeIndex(idx1, i); - if (linkedidx == idx1) - model->setREncFlightModeIndexToValue(idx1, i, idx2 - shift); - else if (linkedidx == idx2) - model->setREncFlightModeIndexToValue(idx1, i, idx1 + shift); - else - model->setREncFlightModeIndexToValue(idx1, i, linkedidx); - } - - if (model->isREncLinked(idx2, i)) { - int linkedidx = model->getREncFlightModeIndex(idx2, i); - if (linkedidx == idx1) - model->setREncFlightModeIndexToValue(idx2, i, idx2 - shift); - else if (linkedidx == idx2) - model->setREncFlightModeIndexToValue(idx2, i, idx1 + shift); - else - model->setREncFlightModeIndexToValue(idx2, i, linkedidx); - } - } - model->updateAllReferences(ModelData::REF_UPD_TYPE_FLIGHT_MODE, ModelData::REF_UPD_ACT_SWAP, idx1, idx2); emit datachanged(); emit modified(); diff --git a/companion/src/modeledit/flightmodes.h b/companion/src/modeledit/flightmodes.h index 1986f1e46..3e98e512c 100644 --- a/companion/src/modeledit/flightmodes.h +++ b/companion/src/modeledit/flightmodes.h @@ -64,8 +64,6 @@ class FlightModePanel : public ModelPanel void phaseGVPrec_currentIndexChanged(int index); void phaseGVMin_editingFinished(); void phaseGVMax_editingFinished(); - void phaseREValue_editingFinished(); - void phaseREUse_currentIndexChanged(int index); void onCustomContextMenuRequested(QPoint pos); void cmClear(); void cmClearAll(); @@ -92,7 +90,6 @@ class FlightModePanel : public ModelPanel int phaseIdx; FlightModeData & phase; int fmCount; - int reCount; int gvCount; int gvIdx; int trimCount; @@ -105,8 +102,6 @@ class FlightModePanel : public ModelPanel QComboBox * gvPrec[CPN_MAX_GVARS]; QDoubleSpinBox * gvMin[CPN_MAX_GVARS]; QDoubleSpinBox * gvMax[CPN_MAX_GVARS]; - QSpinBox * reValues[CPN_MAX_ENCODERS]; - QComboBox * reUse[CPN_MAX_ENCODERS]; QVector trimsUse; QVector trimsValue; QVector trimsSlider; @@ -115,7 +110,6 @@ class FlightModePanel : public ModelPanel void trimUpdate(unsigned int trim); void updateGVar(int index); - void updateRotaryEncoder(int index); void setGVSB(QDoubleSpinBox * spinBox, int min, int max, int val); void populateGvarUnitCB(QComboBox * cb); void populateGvarPrecCB(QComboBox * cb); diff --git a/companion/src/modelprinter.cpp b/companion/src/modelprinter.cpp index 80b2c0cec..2f359ce00 100644 --- a/companion/src/modelprinter.cpp +++ b/companion/src/modelprinter.cpp @@ -353,20 +353,6 @@ QString ModelPrinter::printGlobalVar(int flightModeIndex, int gvarIndex) } } -QString ModelPrinter::printRotaryEncoder(int flightModeIndex, int reIndex) -{ - const FlightModeData & fm = model.flightModeData[flightModeIndex]; - - if (fm.rotaryEncoders[reIndex] <= 1024) { - return QString("%1").arg(fm.rotaryEncoders[reIndex]); - } - else { - int num = fm.rotaryEncoders[reIndex] - 1025; - if (num >= flightModeIndex) num++; - return tr("FM%1").arg(num); - } -} - QString ModelPrinter::printInputName(int idx) { RawSourceType srcType = (firmware->getCapability(VirtualInputs) ? SOURCE_TYPE_VIRTUAL_INPUT : SOURCE_TYPE_STICK); diff --git a/companion/src/modelprinter.h b/companion/src/modelprinter.h index cef007063..fb4f56973 100644 --- a/companion/src/modelprinter.h +++ b/companion/src/modelprinter.h @@ -67,7 +67,6 @@ class ModelPrinter: public QObject QString printHeliSwashType(); QString printTrim(int flightModeIndex, int stickIndex); QString printGlobalVar(int flightModeIndex, int gvarIndex); - QString printRotaryEncoder(int flightModeIndex, int reIndex); QString printTimer(int idx); QString printTimer(const TimerData & timer); QString printInputName(int idx); diff --git a/radio/src/dataconstants.h b/radio/src/dataconstants.h index f67d0cb07..a0a5e3e49 100644 --- a/radio/src/dataconstants.h +++ b/radio/src/dataconstants.h @@ -535,10 +535,6 @@ enum SwitchSources { SWSRC_TrimT6Up, #endif -#if defined(PCBSKY9X) - SWSRC_REa, -#endif - SWSRC_FIRST_LOGICAL_SWITCH, SWSRC_SW1 = SWSRC_FIRST_LOGICAL_SWITCH, SWSRC_SW2, diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index 1cbf5dcc2..b26865fa9 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -342,12 +342,6 @@ bool isSwitchAvailable(int swtch, SwitchContext context) } #endif -#if defined(PCBSKY9X) && defined(REVX) - if (swtch == SWSRC_REa) { - return false; - } -#endif - if (swtch >= SWSRC_FIRST_LOGICAL_SWITCH && swtch <= SWSRC_LAST_LOGICAL_SWITCH) { if (context == GeneralCustomFunctionsContext) { return false; diff --git a/radio/src/strhelpers.cpp b/radio/src/strhelpers.cpp index 07e6b4e8b..fb52d3300 100644 --- a/radio/src/strhelpers.cpp +++ b/radio/src/strhelpers.cpp @@ -312,16 +312,9 @@ char * getSwitchPositionName(char * dest, swsrc_t idx) } #endif -#if defined(PCBSKY9X) - else if (idx <= SWSRC_REa) { - getStringAtIndex(s, STR_VSWITCHES, IDX_TRIMS_IN_STR_VSWITCHES+idx-SWSRC_FIRST_TRIM); - } -#else else if (idx <= SWSRC_LAST_TRIM) { getStringAtIndex(s, STR_VSWITCHES, IDX_TRIMS_IN_STR_VSWITCHES+idx-SWSRC_FIRST_TRIM); } -#endif - else if (idx <= SWSRC_LAST_LOGICAL_SWITCH) { *s++ = 'L'; strAppendUnsigned(s, idx-SWSRC_FIRST_LOGICAL_SWITCH+1, 2); diff --git a/radio/src/translations/cz.h.txt b/radio/src/translations/cz.h.txt index 4c04f2bf1..959eabc77 100644 --- a/radio/src/translations/cz.h.txt +++ b/radio/src/translations/cz.h.txt @@ -319,14 +319,6 @@ #define TR_TRIMS_SWITCHES TR("tSl""tSp""tVd""tVn""tPd""tPn""tKl""tKp", "\313Sl""\313Sp""\313Vd""\313Vn""\313Pd""\313Pn""\313Kl""\313Kp") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ZAP""One" #if defined(GYRO) diff --git a/radio/src/translations/de.h.txt b/radio/src/translations/de.h.txt index c9e91bd45..1dea2337d 100644 --- a/radio/src/translations/de.h.txt +++ b/radio/src/translations/de.h.txt @@ -322,14 +322,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "DGa\0" - #define TR_ROTENC_SWITCHES "DGa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/en.h.txt b/radio/src/translations/en.h.txt index e7c30c01e..839d5525f 100644 --- a/radio/src/translations/en.h.txt +++ b/radio/src/translations/en.h.txt @@ -322,14 +322,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/es.h.txt b/radio/src/translations/es.h.txt index 428505c1c..9acad942b 100644 --- a/radio/src/translations/es.h.txt +++ b/radio/src/translations/es.h.txt @@ -319,14 +319,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/fi.h.txt b/radio/src/translations/fi.h.txt index 4ff379551..68877b9a4 100644 --- a/radio/src/translations/fi.h.txt +++ b/radio/src/translations/fi.h.txt @@ -340,14 +340,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/fr.h.txt b/radio/src/translations/fr.h.txt index e9e87f731..17aced3df 100644 --- a/radio/src/translations/fr.h.txt +++ b/radio/src/translations/fr.h.txt @@ -342,14 +342,6 @@ #define TR_TRIMS_SWITCHES TR("tDg""tDd""tPb""tPh""tGb""tGh""tAg""tAd", "\313Dg""\313Dd""\313Pb""\313Ph""\313Gb""\313Gh""\313Ag""\313Ad") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""Un" #if defined(GYRO) diff --git a/radio/src/translations/it.h.txt b/radio/src/translations/it.h.txt index 37a494f8a..e055fb123 100644 --- a/radio/src/translations/it.h.txt +++ b/radio/src/translations/it.h.txt @@ -343,15 +343,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/nl.h.txt b/radio/src/translations/nl.h.txt index 397cdd636..17bb59419 100644 --- a/radio/src/translations/nl.h.txt +++ b/radio/src/translations/nl.h.txt @@ -320,14 +320,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/pl.h.txt b/radio/src/translations/pl.h.txt index 370d757f6..04e1fde91 100644 --- a/radio/src/translations/pl.h.txt +++ b/radio/src/translations/pl.h.txt @@ -340,14 +340,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/pt.h.txt b/radio/src/translations/pt.h.txt index a9b5d0027..8d531a393 100644 --- a/radio/src/translations/pt.h.txt +++ b/radio/src/translations/pt.h.txt @@ -322,14 +322,6 @@ #define TR_TRIMS_SWITCHES TR("tRl""tRr""tEd""tEu""tTd""tTu""tAl""tAr", "\313Rl""\313Rr""\313Ed""\313Eu""\313Eu""\313Td""\313Tu""\313Al""\313Ar") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "ON\0""One" #if defined(GYRO) diff --git a/radio/src/translations/se.h.txt b/radio/src/translations/se.h.txt index 1578d86a1..90fc13e97 100644 --- a/radio/src/translations/se.h.txt +++ b/radio/src/translations/se.h.txt @@ -335,14 +335,6 @@ #define TR_TRIMS_SWITCHES TR("tRv""tRh""tHn""tHu""tGn""tGu""tSv""tSh", "\313Rv""\313Rh""\313Hn""\313Hu""\313Gn""\313Gu""\313Sv""\313Sh") #endif -#if defined(PCBSKY9X) - #define TR_ROTARY_ENCODERS "REa\0" - #define TR_ROTENC_SWITCHES "REa" -#else - #define TR_ROTARY_ENCODERS - #define TR_ROTENC_SWITCHES -#endif - #define TR_ON_ONE_SWITCHES "På\0""Ett" #if defined(GYRO) diff --git a/radio/src/translations/untranslated.h b/radio/src/translations/untranslated.h index 88289ed22..7914ba3eb 100644 --- a/radio/src/translations/untranslated.h +++ b/radio/src/translations/untranslated.h @@ -65,7 +65,7 @@ // only special switches here #define TR_VSWITCHES "---" TR_TRIMS_SWITCHES TR_ON_ONE_SWITCHES #elif defined(PCBSKY9X) - #define TR_VSWITCHES "---" "ID0""ID1""ID2" "THR""RUD""ELE""AIL""GEA""TRN" TR_TRIMS_SWITCHES TR_ROTENC_SWITCHES TR_ON_ONE_SWITCHES + #define TR_VSWITCHES "---" "ID0""ID1""ID2" "THR""RUD""ELE""AIL""GEA""TRN" TR_TRIMS_SWITCHES TR_ON_ONE_SWITCHES #endif #if defined(PCBHORUS) && defined(AUX_SERIAL)