mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
37282176d5
commit
9df9fc088d
3 changed files with 67 additions and 14 deletions
3
dive.h
3
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue