Reset VPM-B state between repetitive dives

This resets the maximum crushing pressures and the maximal
ambient pressure between repetitive dives to prevent anomalies
that a dive produces a shorter deco when following another one
than without.

Reported-by: sfuchs@gmx.de
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 2017-02-07 09:18:19 +01:00 committed by Dirk Hohndel
parent ec20d36f3c
commit 032c3258ed
3 changed files with 12 additions and 0 deletions

View file

@ -872,6 +872,7 @@ void dump_plan(struct diveplan *diveplan);
bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer);
void calc_crushing_pressure(double pressure);
void vpmb_start_gradient();
void clear_vpmb_state();
void delete_single_dive(int idx);