subsurface/core
Robert C. Helling e794efaba6 Allow for more O2 sensors
The Divesoft Liberty has four O2 sensors. So far, we had a hard coded
limit of three sensors and crashed with a failed assert when we
encoutered more than three. This allows for up to
MAX_O2_SENSORS which is currently 6. The voting logic is adapted
accordingly: We sort the values and we keep deleting the values that
differ more than 20% by value from the closest. This follows what
Shearwater implements on their computers.

In some of the import/export functions the value is still hard
coded to 6 thanks to explicit field names.

Signed-off-by: Robert C. Helling <helling@lmu.de>
2024-01-23 19:24:53 +01:00
..
settings Equipment: Include Unused Tanks in Merge if Preference is Enabled. 2023-07-25 11:19:03 +12:00
subsurface-qt
android.cpp core: use C++ std::strings for default directory and filename 2023-06-03 12:54:24 +02:00
btdiscovery.cpp
btdiscovery.h
checkcloudconnection.cpp
checkcloudconnection.h cloudstorage: try alternative server if first connection fails 2021-04-19 12:51:01 -07:00
cloudstorage.cpp mobile: add ability to delete cloud account 2022-08-13 14:08:37 -07:00
cloudstorage.h
CMakeLists.txt
cochran.c
cochran.h
color.cpp
color.h
compressibility.r Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
configuredivecomputer.cpp
configuredivecomputer.h
configuredivecomputerthreads.cpp Desktop: Add option to force overwrite firmware for OSTC4. 2023-03-18 00:11:08 +13:00
configuredivecomputerthreads.h Desktop: Add option to force overwrite firmware for OSTC4. 2023-03-18 00:11:08 +13:00
connectionlistmodel.cpp
connectionlistmodel.h
datatrak.c core: use divelog struct in downloader code 2023-04-14 21:20:23 +02:00
datatrak.h Cleanup: const-ify functions taking dives and divecomputers 2018-08-23 14:41:01 -07:00
deco.c
deco.h
device.cpp cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
device.h
devicedetails.cpp
devicedetails.h Cleanup: Remove 'data' field from 'DeviceDetails'. 2023-01-31 10:54:39 +01:00
dive.c
dive.h
divecomputer.c profile: register event names on creation of events 2023-02-17 06:46:46 -08:00
divecomputer.h
divefilter.cpp
divefilter.h
divelist.c
divelist.h
divelog.cpp
divelog.h core: use divelog struct in downloader code 2023-04-14 21:20:23 +02:00
divelogexportlogic.cpp
divelogexportlogic.h
divemode.h
divesite-helper.cpp Dive site: use own copy of taxonomy in dive-site-edit widget 2018-10-13 21:41:41 -04:00
divesite.c
divesite.h
divesitehelpers.cpp
divesitehelpers.h [Bug #2934] Geo Lookup - support for remote dive sites 2020-09-05 17:34:15 +02:00
downloadfromdcthread.cpp
downloadfromdcthread.h
equipment.c
equipment.h
errorhelper.c
errorhelper.h
event.c
event.h
eventname.cpp
eventname.h Desktop: Consider Severity when Hiding Events. 2023-08-04 01:11:12 +12:00
exif.cpp
exif.h
extradata.h
file.c
file.h core: introduce divelog structure 2023-04-14 21:20:23 +02:00
filterconstraint.cpp
filterconstraint.h
filterpreset.cpp core: introduce divelog structure 2023-04-14 21:20:23 +02:00
filterpreset.h
format.cpp cleanup: silence std::move()-related Coverity warnings 2024-01-15 15:11:36 -08:00
format.h
fulltext.cpp
fulltext.h
gas-model.c Show correct gas density in CCR mode 2022-11-08 10:43:47 -08:00
gas.c
gas.h
gaspressures.c
gaspressures.h cleanup: constify populate_pressure_information() 2021-01-20 10:01:50 -08:00
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.c
git-access.h
globals.cpp core: add class that collects global objects to be deleted on exit 2022-03-16 13:06:06 -07:00
globals.h
imagedownloader.cpp cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
imagedownloader.h
import-cobalt.c
import-csv.c
import-csv.h core: introduce divelog structure 2023-04-14 21:20:23 +02:00
import-divinglog.c
import-seac.c
import-shearwater.c
import-suunto.c
interpolate.h
ios.cpp core: use C++ std::strings for default directory and filename 2023-06-03 12:54:24 +02:00
libdivecomputer.c Allow for more O2 sensors 2024-01-23 19:24:53 +01:00
libdivecomputer.h Import: Add option to sync time on dive computer download 2023-04-17 07:56:02 -07:00
liquivision.c
load-git.c
macos.cpp
membuffer.cpp core: C++-ify membuffer 2021-07-23 11:22:43 -07:00
membuffer.h
metadata.cpp
metadata.h
metrics.cpp core: remove DPR from IconMetrics class 2021-12-17 11:54:23 -08:00
metrics.h
namecmp.h Qt6: deal with changes from QStringRef to QStringView 2022-03-12 08:28:32 -08:00
ostctools.c
owning_ptrs.h
parse-gpx.cpp
parse-gpx.h cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
parse-xml.c
parse.c core: use divelog struct in parser state 2023-04-14 21:20:23 +02:00
parse.h core: use divelog struct in parser state 2023-04-14 21:20:23 +02:00
picture.c
picture.h
pictureobj.cpp media: add small C++ helper describing a picture struct 2020-05-06 13:58:09 -07:00
pictureobj.h
planner.c
planner.h
plannernotes.c
pref.c Equipment: Include Unused Tanks in Merge if Preference is Enabled. 2023-07-25 11:19:03 +12:00
pref.h Equipment: Include Unused Tanks in Merge if Preference is Enabled. 2023-07-25 11:19:03 +12:00
profile.c
profile.h Allow for more O2 sensors 2024-01-23 19:24:53 +01:00
qt-ble.cpp
qt-ble.h
qt-gui.h
qt-init.cpp translations: fix Portuguese parent translation 2022-03-27 17:11:05 -07:00
qthelper.cpp cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
qthelper.h
qtserialbluetooth.cpp Use QtBluetooth enums from their namespace 2021-03-12 08:41:31 -08:00
range.h
sample.c
sample.h
save-git.c
save-html.c
save-html.h
save-profiledata.c
save-profiledata.h
save-xml.c
selection.cpp
selection.h selection: move current dc logic to profile widget 2023-04-16 20:23:59 +02:00
serial_ftdi.c core: fix libdivecomputer dc_custom callbacks structures 2020-06-18 09:05:13 -07:00
serial_usb_android.cpp
serial_usb_android.h
sha1.c
sha1.h
ssrf.h
statistics.c
statistics.h
string-format.cpp
string-format.h cleanup: move formatting of gas type to string-format.cpp 2023-03-28 20:39:02 -07:00
strndup.h
strtod.c Core: introduce new subsurface-string header 2018-05-14 10:13:39 -07:00
structured_list.h
subsurface-float.h core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
subsurface-string.h core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
subsurface-time.h cleanup: const-ify utc_mktime() 2020-12-29 08:34:09 -08:00
subsurfacestartup.c
subsurfacestartup.h cleanup: move application flags to core/subsurfacehelper.h 2020-10-25 13:59:52 -07:00
subsurfacesysinfo.cpp
subsurfacesysinfo.h
table.h media: create sort_picture_table function via macro 2020-05-06 13:58:09 -07:00
tag.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
tag.h
taxonomy.c
taxonomy.h
time.c
timer.c Add timestamps to libdivecomputer.log 2020-03-10 17:42:54 -07:00
timer.h Add timestamps to libdivecomputer.log 2020-03-10 17:42:54 -07:00
trip.c
trip.h
uemis-downloader.c
uemis.c
uemis.h
units.c
units.h
unix.cpp
uploadDiveLogsDE.cpp
uploadDiveLogsDE.h
uploadDiveShare.cpp Qt6: update the connect calls for QNetworkReply 2022-04-18 07:24:39 +02:00
uploadDiveShare.h
version.c Complete redesign of Subsurface version numbers 2024-01-06 10:55:24 -08:00
version.h retire the mobile version 2024-01-06 10:55:24 -08:00
videoframeextractor.cpp
videoframeextractor.h Dive media: Extract thumbnails from videos with ffmpeg 2018-07-28 15:31:25 -07:00
webservice.h
windows.cpp
windowtitleupdate.cpp Cleanup: Make WindowsTitleUpdate a global object 2018-07-30 13:55:23 -07:00
windowtitleupdate.h
worldmap-options.h
worldmap-save.c
worldmap-save.h
xmlparams.cpp core: add a small helper-struct that keeps track of xml-parameters 2020-10-23 18:17:02 -07:00
xmlparams.h
xmp_parser.cpp
xmp_parser.h Metadata: rudimentary support for XMP metadataa in MP4-based videos 2018-09-25 14:59:14 -07:00