mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add function to calculate gas maximum narcotic depth
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1ba61d7ad5
commit
9fbd11744f
6 changed files with 20 additions and 9 deletions
|
@ -291,7 +291,7 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f)
|
|||
prefs.descrate = s.value("descrate", prefs.descrate).toInt();
|
||||
prefs.bottompo2 = s.value("bottompo2", prefs.bottompo2).toInt();
|
||||
prefs.decopo2 = s.value("decopo2", prefs.decopo2).toInt();
|
||||
prefs.bestmixend = s.value("bestmixend", prefs.bestmixend).toInt();
|
||||
prefs.bestmixend.mm = s.value("bestmixend", prefs.bestmixend.mm).toInt();
|
||||
prefs.doo2breaks = s.value("doo2breaks", prefs.doo2breaks).toBool();
|
||||
prefs.switch_at_req_stop = s.value("switch_at_req_stop", prefs.switch_at_req_stop).toBool();
|
||||
prefs.min_switch_duration = s.value("min_switch_duration", prefs.min_switch_duration).toInt();
|
||||
|
@ -385,7 +385,7 @@ void PlannerSettingsWidget::updateUnitsUI()
|
|||
ui.ascRateStops->setValue(rint(prefs.ascratestops / UNIT_FACTOR));
|
||||
ui.ascRateLast6m->setValue(rint(prefs.ascratelast6m / UNIT_FACTOR));
|
||||
ui.descRate->setValue(rint(prefs.descrate / UNIT_FACTOR));
|
||||
ui.bestmixEND->setValue(rint(get_depth_units(prefs.bestmixend, NULL, NULL)));
|
||||
ui.bestmixEND->setValue(rint(get_depth_units(prefs.bestmixend.mm, NULL, NULL)));
|
||||
}
|
||||
|
||||
PlannerSettingsWidget::~PlannerSettingsWidget()
|
||||
|
@ -406,7 +406,7 @@ PlannerSettingsWidget::~PlannerSettingsWidget()
|
|||
s.setValue("descrate", prefs.descrate);
|
||||
s.setValue("bottompo2", prefs.bottompo2);
|
||||
s.setValue("decopo2", prefs.decopo2);
|
||||
s.setValue("bestmixend", prefs.bestmixend);
|
||||
s.setValue("bestmixend", prefs.bestmixend.mm);
|
||||
s.setValue("doo2breaks", prefs.doo2breaks);
|
||||
s.setValue("drop_stone_mode", prefs.drop_stone_mode);
|
||||
s.setValue("switch_at_req_stop", prefs.switch_at_req_stop);
|
||||
|
@ -522,7 +522,7 @@ void PlannerSettingsWidget::setDecoPo2(double po2)
|
|||
|
||||
void PlannerSettingsWidget::setBestmixEND(int depth)
|
||||
{
|
||||
prefs.bestmixend = units_to_depth(depth);
|
||||
prefs.bestmixend.mm = units_to_depth(depth);
|
||||
}
|
||||
|
||||
void PlannerSettingsWidget::setBackgasBreaks(bool dobreaks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue