summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Jan Schubert <Jan.Schubert@GMX.li>2013-01-23 20:12:24 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-28 18:31:30 -0800
commit9df9fc088daedc71b56acc176cf3b8ee3de870fa (patch)
treeef33ca5645db6b79aa962eb23d408f496a80dd4a /dive.h
parent37282176d5b3348beacda3622ca4726c4d1f41d7 (diff)
downloadsubsurface-9df9fc088daedc71b56acc176cf3b8ee3de870fa.tar.gz
Dive planning for closed circuit rebreather
This misses a single issue to be used as a base for further discussion: The CC setpoint is used for the next segment, not the one specified for. I also have in mind to modify the existing code to use setpoints specified in mbar and plain integer instead of float values. Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 6a6ab3eee..0d14e43c0 100644
--- a/dive.h
+++ b/dive.h
@@ -587,6 +587,7 @@ struct divedatapoint {
int depth;
int o2;
int he;
+ int po2;
gboolean entered;
struct divedatapoint *next;
};
@@ -600,7 +601,7 @@ struct diveplan {
};
void plan(struct diveplan *diveplan, char **cache_datap, struct dive **divep);
-void plan_add_segment(struct diveplan *diveplan, int duration, int depth, int o2, int he);
+void plan_add_segment(struct diveplan *diveplan, int duration, int depth, int o2, int he, int po2);
void add_duration_to_nth_dp(struct diveplan *diveplan, int idx, int duration, gboolean is_rel);
void add_depth_to_nth_dp(struct diveplan *diveplan, int idx, int depth);
void add_gas_to_nth_dp(struct diveplan *diveplan, int idx, int o2, int he);