Planner: Add checkbox to force OC bailout

This adds a checkbox for rebreather modes of the planner
that force the ascent to be in OC mode. Before, one had
to add a one minute last segment with the mode change but
this is not practical when manually searching for the
maximal bottom time given gas reserves.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2019-01-10 21:18:53 +01:00 committed by Dirk Hohndel
parent 7f2c7aa7de
commit 2c794348c1
10 changed files with 156 additions and 110 deletions

View file

@ -1005,6 +1005,7 @@ void MainWindow::on_actionDivePlanner_triggered()
// plan the dive in the same mode as the currently selected one
if (current_dive) {
divePlannerSettingsWidget->setDiveMode(current_dive->dc.divemode);
divePlannerSettingsWidget->setBailoutVisibility(current_dive->dc.divemode);
if (current_dive->salinity)
divePlannerWidget->setSalinity(current_dive->salinity);
}