mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Compute first stop pressure for each round of CVA
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
80e7213582
commit
fe00abc774
1 changed files with 6 additions and 0 deletions
|
@ -1143,6 +1143,12 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
|
|||
breaktime = -1;
|
||||
breakcylinder = 0;
|
||||
o2time = 0;
|
||||
first_stop_pressure.mbar = depth_to_mbar(deco_allowed_depth(tissue_tolerance,
|
||||
diveplan->surface_pressure / 1000.0,
|
||||
&displayed_dive,
|
||||
1),
|
||||
&displayed_dive);
|
||||
|
||||
last_ascend_rate = ascent_velocity(depth, avg_depth, bottom_time);
|
||||
if ((current_cylinder = get_gasidx(&displayed_dive, &gas)) == -1) {
|
||||
report_error(translate("gettextFromC", "Can't find gas %s"), gasname(&gas));
|
||||
|
|
Loading…
Add table
Reference in a new issue