diff --git a/companion/src/firmwares/generalsettings.cpp b/companion/src/firmwares/generalsettings.cpp index 80f68dedf..6470f6ca3 100644 --- a/companion/src/firmwares/generalsettings.cpp +++ b/companion/src/firmwares/generalsettings.cpp @@ -494,20 +494,6 @@ FieldRange GeneralSettings::getPPM_MultiplierRange() return result; } -// static -FieldRange GeneralSettings::getTxVoltageCalibrationRange() -{ - FieldRange result; - - result.decimals = 1; - result.max = 9.9; - result.min = -result.max; - result.step = 0.1; - result.unit = tr("v"); - - return result; -} - // static FieldRange GeneralSettings::getTxCurrentCalibration() { diff --git a/companion/src/firmwares/generalsettings.h b/companion/src/firmwares/generalsettings.h index f039c0f36..6904cc1a4 100644 --- a/companion/src/firmwares/generalsettings.h +++ b/companion/src/firmwares/generalsettings.h @@ -260,7 +260,6 @@ class GeneralSettings { static QString auxSerialModeToString(int value); static QString telemetryBaudrateToString(int value); static FieldRange getPPM_MultiplierRange(); - static FieldRange getTxVoltageCalibrationRange(); static FieldRange getTxCurrentCalibration(); static AbstractStaticItemModel * antennaModeItemModel(); static AbstractStaticItemModel * bluetoothModeItemModel(); diff --git a/companion/src/generaledit/hardware.cpp b/companion/src/generaledit/hardware.cpp index 4f7e52a7a..477287b2e 100644 --- a/companion/src/generaledit/hardware.cpp +++ b/companion/src/generaledit/hardware.cpp @@ -86,15 +86,6 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings addLine(row); } - addLabel(tr("Battery Offset"), row, 0); - AutoDoubleSpinBox *txVoltageCalibration = new AutoDoubleSpinBox(this); - FieldRange txVCRng = GeneralSettings::getTxVoltageCalibrationRange(); - txVoltageCalibration->setDecimals(txVCRng.decimals); - txVoltageCalibration->setSingleStep(txVCRng.step); - txVoltageCalibration->setSuffix(txVCRng.unit); - txVoltageCalibration->setField(generalSettings.txVoltageCalibration); - addParams(row, txVoltageCalibration); - if (Boards::getCapability(board, Board::HasRTC)) { addLabel(tr("RTC Battery Check"), row, 0); AutoCheckBox *rtcCheckDisable = new AutoCheckBox(this); @@ -183,7 +174,7 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings addLabel(tr("Current Offset"), row, 0); AutoSpinBox *txCurrentCalibration = new AutoSpinBox(this); FieldRange txCCRng = GeneralSettings::getTxCurrentCalibration(); - txCurrentCalibration->setSuffix(txVCRng.unit); + txCurrentCalibration->setSuffix(txCCRng.unit); txCurrentCalibration->setField(generalSettings.txCurrentCalibration); addParams(row, txCurrentCalibration); }