summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--core/settings/qPrefTechnicalDetails.cpp2
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp1
-rw-r--r--mobile-widgets/qml/Settings.qml26
-rw-r--r--profile-widget/profilewidget2.cpp2
5 files changed, 30 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ab1af0b46..09fa80f2a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+- mobile: add GF fields to adjust Buhlmann algorithm parameters for calculated ceiling
- undo: save to git after editing weights [#3159]
- undo: reset dive-mode on undo of set-point addition
- desktop: complete rewrite of the statistics code, significantly expanding capabilities
diff --git a/core/settings/qPrefTechnicalDetails.cpp b/core/settings/qPrefTechnicalDetails.cpp
index 2db4898ae..3c616170d 100644
--- a/core/settings/qPrefTechnicalDetails.cpp
+++ b/core/settings/qPrefTechnicalDetails.cpp
@@ -62,6 +62,7 @@ void qPrefTechnicalDetails::set_gfhigh(int value)
if (value != prefs.gfhigh) {
prefs.gfhigh = value;
disk_gfhigh(true);
+ set_gf(-1, prefs.gfhigh);
emit instance()->gfhighChanged(value);
}
}
@@ -82,6 +83,7 @@ void qPrefTechnicalDetails::set_gflow(int value)
if (value != prefs.gflow) {
prefs.gflow = value;
disk_gflow(true);
+ set_gf(prefs.gflow, -1);
emit instance()->gflowChanged(value);
}
}
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index b7fd5b4b9..687a8d84e 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -68,7 +68,6 @@ void PreferencesGraph::syncSettings()
prefs.planner_deco_mode = ui->buehlmann->isChecked() ? BUEHLMANN : VPMB;
qPrefTechnicalDetails::set_gflow(ui->gflow->value());
qPrefTechnicalDetails::set_gfhigh(ui->gfhigh->value());
- set_gf(ui->gflow->value(), ui->gfhigh->value());
qPrefTechnicalDetails::set_vpmb_conservatism(ui->vpmb_conservatism->value());
set_vpmb_conservatism(ui->vpmb_conservatism->value());
qPrefTechnicalDetails::set_show_ccr_setpoint(ui->show_ccr_setpoint->isChecked());
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index 3d28bec2a..46c9d2aa6 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -622,7 +622,7 @@ TemplatePage {
checked: PrefTechnicalDetails.dcceiling
onClicked: {
PrefTechnicalDetails.dcceiling = checked
- rootItem.settingChanged()
+ rootItem.settingsChanged()
}
}
TemplateLabel {
@@ -635,6 +635,30 @@ TemplatePage {
rootItem.settingsChanged()
}
}
+ TemplateLabel {
+ text: qsTr("GFLow")
+ }
+ TemplateTextField {
+ id: gfLow
+ text: PrefTechnicalDetails.gflow
+ inputMask: "99"
+ onEditingFinished: {
+ PrefTechnicalDetails.gflow = gfLow.text
+ rootItem.settingsChanged()
+ }
+ }
+ TemplateLabel {
+ text: qsTr("GFHigh")
+ }
+ TemplateTextField {
+ id: gfHigh
+ text: PrefTechnicalDetails.gfhigh
+ inputMask: "99"
+ onEditingFinished: {
+ PrefTechnicalDetails.gfhigh = gfHigh.text
+ rootItem.settingsChanged()
+ }
+ }
}
TemplateLine {
visible: sectionAdvanced.isExpanded
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 4759c007a..043c39258 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -185,6 +185,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
auto tec = qPrefTechnicalDetails::instance();
connect(tec, &qPrefTechnicalDetails::calcalltissuesChanged , this, &ProfileWidget2::actionRequestedReplot);
connect(tec, &qPrefTechnicalDetails::calcceilingChanged , this, &ProfileWidget2::actionRequestedReplot);
+ connect(tec, &qPrefTechnicalDetails::gflowChanged , this, &ProfileWidget2::actionRequestedReplot);
+ connect(tec, &qPrefTechnicalDetails::gfhighChanged , this, &ProfileWidget2::actionRequestedReplot);
connect(tec, &qPrefTechnicalDetails::dcceilingChanged , this, &ProfileWidget2::actionRequestedReplot);
connect(tec, &qPrefTechnicalDetails::eadChanged , this, &ProfileWidget2::actionRequestedReplot);
connect(tec, &qPrefTechnicalDetails::calcceiling3mChanged , this, &ProfileWidget2::actionRequestedReplot);