diff options
author | Jan Darowski <jan.darowski@gmail.com> | 2015-08-15 14:28:44 +0200 |
---|---|---|
committer | Jan Darowski <jan.darowski@gmail.com> | 2015-08-15 14:32:36 +0200 |
commit | 499ec9af2fd152ec5b608eaacf53b2df33eec1d3 (patch) | |
tree | 416d1ec47d95275d721d66eb407fd863c73086e5 /planner.c | |
parent | c0fde4f50fe8da93094b918bd84ec76eaf4c4598 (diff) | |
download | subsurface-499ec9af2fd152ec5b608eaacf53b2df33eec1d3.tar.gz |
VPM-B: Add surface decompression time.
Now, we calculate the volume of free gas not only based on the deco
time but also time on the surface, needed for the full desaturation.
Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1100,7 +1100,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool do { is_final_plan = (prefs.deco_mode == BUEHLMANN) || (previous_deco_time - deco_time < 10); // CVA time converges if (deco_time != 10000000) - vpmb_next_gradient(deco_time); + vpmb_next_gradient(deco_time, diveplan->surface_pressure / 1000.0); previous_deco_time = deco_time; restore_deco_state(bottom_cache); |