Remove txvoltagecalibration from companion hardware settings
This commit is contained in:
@@ -494,20 +494,6 @@ FieldRange GeneralSettings::getPPM_MultiplierRange()
|
|||||||
return result;
|
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
|
// static
|
||||||
FieldRange GeneralSettings::getTxCurrentCalibration()
|
FieldRange GeneralSettings::getTxCurrentCalibration()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -260,7 +260,6 @@ class GeneralSettings {
|
|||||||
static QString auxSerialModeToString(int value);
|
static QString auxSerialModeToString(int value);
|
||||||
static QString telemetryBaudrateToString(int value);
|
static QString telemetryBaudrateToString(int value);
|
||||||
static FieldRange getPPM_MultiplierRange();
|
static FieldRange getPPM_MultiplierRange();
|
||||||
static FieldRange getTxVoltageCalibrationRange();
|
|
||||||
static FieldRange getTxCurrentCalibration();
|
static FieldRange getTxCurrentCalibration();
|
||||||
static AbstractStaticItemModel * antennaModeItemModel();
|
static AbstractStaticItemModel * antennaModeItemModel();
|
||||||
static AbstractStaticItemModel * bluetoothModeItemModel();
|
static AbstractStaticItemModel * bluetoothModeItemModel();
|
||||||
|
|||||||
@@ -86,15 +86,6 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings
|
|||||||
addLine(row);
|
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)) {
|
if (Boards::getCapability(board, Board::HasRTC)) {
|
||||||
addLabel(tr("RTC Battery Check"), row, 0);
|
addLabel(tr("RTC Battery Check"), row, 0);
|
||||||
AutoCheckBox *rtcCheckDisable = new AutoCheckBox(this);
|
AutoCheckBox *rtcCheckDisable = new AutoCheckBox(this);
|
||||||
@@ -183,7 +174,7 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings
|
|||||||
addLabel(tr("Current Offset"), row, 0);
|
addLabel(tr("Current Offset"), row, 0);
|
||||||
AutoSpinBox *txCurrentCalibration = new AutoSpinBox(this);
|
AutoSpinBox *txCurrentCalibration = new AutoSpinBox(this);
|
||||||
FieldRange txCCRng = GeneralSettings::getTxCurrentCalibration();
|
FieldRange txCCRng = GeneralSettings::getTxCurrentCalibration();
|
||||||
txCurrentCalibration->setSuffix(txVCRng.unit);
|
txCurrentCalibration->setSuffix(txCCRng.unit);
|
||||||
txCurrentCalibration->setField(generalSettings.txCurrentCalibration);
|
txCurrentCalibration->setField(generalSettings.txCurrentCalibration);
|
||||||
addParams(row, txCurrentCalibration);
|
addParams(row, txCurrentCalibration);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user