diff options
author | Jan Schubert <Jan.Schubert@GMX.li> | 2013-01-23 20:12:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-28 18:31:30 -0800 |
commit | 9df9fc088daedc71b56acc176cf3b8ee3de870fa (patch) | |
tree | ef33ca5645db6b79aa962eb23d408f496a80dd4a /dive.h | |
parent | 37282176d5b3348beacda3622ca4726c4d1f41d7 (diff) | |
download | subsurface-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |