Prepare global state of VPM-B when starting to plan

Otherwise, the results of the calculations tend to be rather
random and irreproducible...

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-23 16:04:59 +02:00 committed by Dirk Hohndel
parent cb375623f9
commit 41349c29dd
3 changed files with 13 additions and 1 deletions

3
dive.h
View file

@ -830,6 +830,9 @@ struct divedatapoint *create_dp(int time_incr, int depth, struct gasmix gasmix,
void dump_plan(struct diveplan *diveplan);
#endif
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 delete_single_dive(int idx);
struct event *get_next_event(struct event *event, const char *name);