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:
Robert C. Helling 2015-08-27 14:13:12 +02:00 committed by Dirk Hohndel
parent 80e7213582
commit fe00abc774

View file

@ -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));