mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add functions to calculate best mix
Best mix O2 calculated based on planner Bottom O2 preference Best mix He calculated based on EAD of 30m (should be made user-configurable) Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a6c8d0028e
commit
b61b3a8d28
2 changed files with 26 additions and 0 deletions
|
|
@ -402,6 +402,9 @@ extern void picture_free(struct picture *picture);
|
|||
extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc);
|
||||
extern int get_depth_at_time(struct divecomputer *dc, unsigned int time);
|
||||
|
||||
extern fraction_t best_o2(depth_t depth, struct dive *dive);
|
||||
extern fraction_t best_He(depth_t depth, struct dive *dive);
|
||||
|
||||
static inline int get_surface_pressure_in_mbar(const struct dive *dive, bool non_null)
|
||||
{
|
||||
int mbar = dive->surface_pressure.mbar;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue