aboutsummaryrefslogtreecommitdiffstats
path: root/dives
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 14:32:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 14:32:15 -0700
commitc52b95d502fb79e52d5927b7c59addef984d23e2 (patch)
treedb5001d7d79319223ff4e905d11f55bc132147cb /dives
parentedbba678b3cdc8f06a84a965b04f13ef1f4ecaab (diff)
downloadsubsurface-c52b95d502fb79e52d5927b7c59addef984d23e2.tar.gz
Improve tank pressure plot for computers that create "gaschange" events
This was exposed by the test dives, but it shows up in small ways with real dives from some dive computers like the Suunto Vyper Air. We now insert synthetic plot_info entries that match the gas change event; to make this look smoother we insert either two events (one for the old tank, one a second later for the new tank) if there is no sample at the time of the event, or one additional event (and move the real sample back by one second) if there is a sample at the time of the event. This does expose another issue with some dives from Linus' computer where the pressure in the samples dips below the end pressure noted for the tank - which creates an odd "yellow up-tick" at the end of using the first tank in the plot. Maybe we should not insert a synthetic "last of old tank" event if we have a sample with valid pressure in the last NN seconds before the gas change? Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives')
0 files changed, 0 insertions, 0 deletions