summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:54:57 +0200
committerGravatar Jan Darowski <jan.darowski@gmail.com>2015-07-03 23:54:57 +0200
commit02f13399177d301c9a1242ce0d342b7c91dd28fd (patch)
tree1665c00c383d26a7c49259756d87b16b7c7db699 /planner.c
parente7aa686f1658e689d215397d4493859829965646 (diff)
downloadsubsurface-02f13399177d301c9a1242ce0d342b7c91dd28fd.tar.gz
VPM-B: vpm without CVA working.
Add call of initial calculation of critical radius and start gradient, so the VPM could work. Currently without CVA, so the gradient isn't improved. Only one iteration is run. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/planner.c b/planner.c
index 0307ea89c..700985052 100644
--- a/planner.c
+++ b/planner.c
@@ -1023,6 +1023,11 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
(get_o2(&gas) + 5) / 10, (get_he(&gas) + 5) / 10, gaschanges[best_first_ascend_cylinder].depth / 1000.0);
#endif
}
+
+ // VPM-B or Buehlmann Deco
+ nuclear_regeneration(clock);
+ vpmb_start_gradient();
+
while (1) {
/* We will break out when we hit the surface */
do {