aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-11-23 11:50:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-11-24 09:59:42 +0900
commit4d0d37b6903a65ade442fece35238d1670522df2 (patch)
treeb740accc07b13096a15aebd3afe8daf2d0a480bf /core/dive.h
parentd1a0655613ba11a32dc7558c27ea733e9a447276 (diff)
downloadsubsurface-4d0d37b6903a65ade442fece35238d1670522df2.tar.gz
Show effective gradient factors for VPMB-plans
For each stop, this computes an effective gradient factor that gives the same ceiling. Then, it does linear regression to find values for GFlow and GFhigh that give a similar deco profile. Note that this optimises the average gradient factor. The runtime however depends strongly at the gradient factor at the last depth. So we don't necessarily to get the runtime right. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index f1c144481..4a314dad5 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -859,6 +859,7 @@ struct diveplan {
short gfhigh;
short vpmb_conservatism;
struct divedatapoint *dp;
+ int eff_gflow, eff_gfhigh;
};
struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered);