mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: bring sanity to the SAC rate handling
The old implementation was... let's call it creative. This tries to actually get things right instead of using magic. Don't pretend that double values are ints. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
150676ce3d
commit
6ed189f32c
5 changed files with 61 additions and 48 deletions
2
dive.h
2
dive.h
|
@ -99,7 +99,7 @@ extern double get_weight_units(unsigned int grams, int *frac, const char **units
|
|||
extern double get_vertical_speed_units(unsigned int mms, int *frac, const char **units);
|
||||
|
||||
extern unsigned int units_to_depth(double depth);
|
||||
extern int units_to_sac(int volume);
|
||||
extern int units_to_sac(double volume);
|
||||
|
||||
/* Volume in mliter of a cylinder at pressure 'p' */
|
||||
extern int gas_volume(cylinder_t *cyl, pressure_t p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue