From: Dirk Hohndel Date: Fri, 4 Nov 2011 21:32:15 +0000 (-0700) Subject: Improve tank pressure plot for computers that create "gaschange" events X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=sidebyside;h=c52b95d502fb79e52d5927b7c59addef984d23e2;hp=c52b95d502fb79e52d5927b7c59addef984d23e2;p=ext%2Fsubsurface.git 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 ---