subsurface/core/deco.h
Rick Walsh ebddf95252 ToolTipItem: show gf line based on correct gradient factor preferences
Calculate gfline using the gradient factor that is set by the planner
preferences when in the planner, and by the general prefs when not in the
planner. This is achieved by doing the gradient factor calculation in dive.c,
where buehlmann_config is defined.

Previously, the gfline was calculated using the general preferences gfhigh and
gflow, even when in the planner.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-10-27 20:36:14 -07:00

22 lines
529 B
C

#ifndef DECO_H
#define DECO_H
#ifdef __cplusplus
extern "C" {
#endif
extern double tolerated_by_tissue[];
extern double buehlmann_N2_t_halflife[];
extern double tissue_inertgas_saturation[16];
extern double buehlmann_inertgas_a[16], buehlmann_inertgas_b[16];
extern double gf_low_pressure_this_dive;
extern int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, bool smooth);
double get_gf(double ambpressure_bar, const struct dive *dive);
#ifdef __cplusplus
}
#endif
#endif // DECO_H