mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Round MOD of gas rather than truncate
For the proper calculation, we need to take salinity and surface pressure into account (rather than depth = bar * 10 - 10) Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9c6a3a7ff3
commit
a7d18a9fa6
6 changed files with 24 additions and 12 deletions
|
|
@ -176,7 +176,7 @@ void fill_default_cylinder(cylinder_t *cyl)
|
|||
cyl->type.size.mliter = cuft_to_l(ti->cuft) * 1000 / bar_to_atm(psi_to_bar(ti->psi));
|
||||
}
|
||||
// MOD of air
|
||||
cyl->depth = gas_mod(&cyl->gasmix, pO2, 1);
|
||||
cyl->depth = gas_mod(&cyl->gasmix, pO2, &displayed_dive, 1);
|
||||
}
|
||||
|
||||
/* make sure that the gas we are switching to is represented in our
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue