diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-10-23 04:47:39 +0900 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2015-10-23 23:50:08 +0200 |
commit | ae1e9b11a537eb0ba9b649cb876dae4cc4628045 (patch) | |
tree | 7b1a7acd42d97800dbf9591c02f8a5f80986f0e0 /qt-ui/maintab.ui | |
parent | 6495b629fedff6b7bb0ada72c8ddfe322043c28d (diff) | |
download | subsurface-ae1e9b11a537eb0ba9b649cb876dae4cc4628045.tar.gz |
Fix the momentary SAC calculation for the profile coloring
There was tons wrong with the code. You can't just average the SAC rate
over different plot entries, since they may not be the same duration.
And it got the beginning and end conditions wrong etc etc.
This should at least get much closer. And it's structured to be a lot
more understandable, I hope, even if the math is a bit more involved (ie
doing the proper time-pressure integration etc). It may still have
bugs, but at least it now gets the right coloration at the beginning of
a dive, and just eye-balling the slope vs color it seems to do the right
thing.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-ui/maintab.ui')
0 files changed, 0 insertions, 0 deletions