mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only calculate deco stops in planner mode
In add dive mode simply bring the diver safely back to the surface (currently with a fixed ascent rate of 30ft/min (or 9m/min)). We should make that rate configurable (for the planner as well as the dive add function). Also, the dive add function should offer to automatically include a safety stop. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4141c68450
commit
56535e4b3b
4 changed files with 18 additions and 5 deletions
|
@ -1148,7 +1148,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
|
|||
char *cache = NULL;
|
||||
tempDive = NULL;
|
||||
char *errorString = NULL;
|
||||
plan(&diveplan, &cache, &tempDive, &errorString);
|
||||
plan(&diveplan, &cache, &tempDive, isPlanner(), &errorString);
|
||||
#if DEBUG_PLAN
|
||||
dump_plan(&diveplan);
|
||||
#endif
|
||||
|
@ -1181,7 +1181,7 @@ void DivePlannerPointsModel::createPlan()
|
|||
char *errorString = NULL;
|
||||
|
||||
createTemporaryPlan();
|
||||
plan(&diveplan, &cache, &tempDive, &errorString);
|
||||
plan(&diveplan, &cache, &tempDive, isPlanner(), &errorString);
|
||||
mark_divelist_changed(TRUE);
|
||||
|
||||
// Remove and clean the diveplan, so we don't delete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue