diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2015-08-29 22:00:34 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-29 20:06:49 -0700 |
commit | e2178c0e55b327b0735006ae61fafc37b4bc2503 (patch) | |
tree | eebf57caaf7665dccb25d48662286076c89ead4e /planner.c | |
parent | 27ba48a09e1fb43d4ac29e946d2fd97833d69526 (diff) | |
download | subsurface-e2178c0e55b327b0735006ae61fafc37b4bc2503.tar.gz |
VPM-B: Remove obsolete first_ceiling_pressure calculation
We now do the first_ceiling_pressure calculation at the start of the CVA loop.
We don't need to do it before.
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -942,7 +942,6 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool int *decostoplevels; int decostoplevelcount; unsigned int *stoplevels = NULL; - int vpmb_first_stop; bool stopping = false; bool pendinggaschange = false; bool clear_to_ascend; @@ -1109,21 +1108,6 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool bottom_gas = gas; bottom_stopidx = stopidx; - // Find first stop used for VPM-B Boyle's law compensation - if (prefs.deco_mode == VPMB) { - vpmb_first_stop = deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000, &displayed_dive, 1); - if (vpmb_first_stop > 0) { - while (stoplevels[stopidx] > vpmb_first_stop) { - stopidx--; - } - stopidx++; - vpmb_first_stop = stoplevels[stopidx]; - } - first_ceiling_pressure.mbar = depth_to_mbar(vpmb_first_stop, &displayed_dive); - } else { - first_ceiling_pressure.mbar = 0; - } - //CVA do { is_final_plan = (prefs.deco_mode == BUEHLMANN) || (previous_deco_time - deco_time < 10); // CVA time converges |