diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-22 20:15:33 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-22 20:35:02 +0900 |
commit | 6495b629fedff6b7bb0ada72c8ddfe322043c28d (patch) | |
tree | 7f6ffc7e541e6f5ba1aa2442bcd9e9bba7bb1117 /windowtitleupdate.cpp | |
parent | f1c682b55a52c11d7cb57da0fc66d6edb118ba77 (diff) | |
download | subsurface-6495b629fedff6b7bb0ada72c8ddfe322043c28d.tar.gz |
Interpretive dance to parse Suunto EON Steel tank sizes
Admittedly, imperial tank sizes are a bit weird.
But it must have taken some effort to break things as creatievly as Suunto did.
The UI allows only multiples of 100psi and multiples of 10cuft. Which shows
that the developers have no idea what typical imperial tanks look like. AL72?
AL63? HP tanks at 3440psi? LP+ at 2640psi?
Yeah, I get it - you had no idea, someone showed you an AL80 and you made silly
assumptions.
But even then, what the heck are you storing in your data, dear Suunto? The
pressures are off by the very logical factor of 1.00069182389937. And then
regardless whether I use the wrong pressure or the corrected pressure, the wet
sizes are too small by a non-constant factor.
So this code takes the junk that libdivecomputer truthfully passes through from
the Suunto parser and tries to convert it into something that matches what the
user most likely entered in the EON Steel UI. Ugly. Stupid. But it seems to
work.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'windowtitleupdate.cpp')
0 files changed, 0 insertions, 0 deletions