Use gradient factors in deco calculation

Usually dive computers show the ceiling in terms of the next deco stop -
and those are in 3m increments. This commit also adds the ability to chose
either the typical 3m increments or the smooth ceiling that the Bühlmann
algorithm actually calculates.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-01-02 23:22:07 -08:00
parent aab67e2a5b
commit 5ba250bd48
5 changed files with 86 additions and 13 deletions

2
dive.h
View file

@ -574,7 +574,7 @@ extern void subsurface_command_line_exit(gint *, gchar ***);
extern double add_segment(double pressure, struct gasmix *gasmix);
extern void clear_deco(void);
extern unsigned int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, gboolean smooth);
#ifdef DEBUGFILE
extern char *debugfilename;
extern FILE *debugfile;