mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add support for obtaining salinity from libdivecomputer
This requires a patched libdivecomputer that can return salinity of the water the dive was conducted in. Experimental patches exist that implement this for the OSTC. The code is designed so that it simply defaults to salt water if libdivecomputer doesn't include the feature. The patch also fixes the dive merge code to merge two other recent additions to the dive structure (surface_pressure and visibility). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
836bbad7a6
commit
f53788e5e4
3 changed files with 16 additions and 0 deletions
1
dive.h
1
dive.h
|
@ -267,6 +267,7 @@ struct dive {
|
|||
int rating;
|
||||
double latitude, longitude;
|
||||
depth_t maxdepth, meandepth;
|
||||
int salinity; // kg per 10000 l
|
||||
duration_t duration, surfacetime;
|
||||
int visibility; /* 0 - 5 star rating */
|
||||
temperature_t airtemp, watertemp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue