diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2017-03-16 17:07:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-18 08:33:31 -0700 |
commit | 5c757d5c387f47482556eab6292818b7eba27ce8 (patch) | |
tree | 0325d573a8b0be4dd063f12d33640d643c29a23d /.clang-format | |
parent | 16d37c254caf99484849bf9e7c8d72da1f3e4faf (diff) | |
download | subsurface-5c757d5c387f47482556eab6292818b7eba27ce8.tar.gz |
smtk-import - Change cylinder import logic
Until now, we did the cylinder import based on its initial pressure (a
tank without pressure is an unused tank). Based in this assumption, we
just dropped those tanks whose initial press was 0, losing user
introduced tank definitions and getting some duplicities due to one
cylinder being numbered (e.g.) 2 by libdivecomputer and 3 by SmartTrak.
The new workflow is: get every single tank reported by SmartTrak (giving
preference to libdivecomputer parsed data), then clean the cylinder
table reverse order, dropping tanks without description and init or end
pressures, and checkig them against the previous cylinder to do a merge,
if they look the same, and try to avoid duplicities.
The new logic assumes a heavier workload for the benefit of lower data
loss (e.g. a user may get his/her tanks descriptions despite he/she
hasn't recorded their pressures because forgot the values or had an issue
with the gas transmitter).
Suggested-by: Alessandro Volpi <volpial@gmail.com>
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions