deco calculations

Dirk Hohndel dirk at hohndel.org
Fri Jan 4 11:25:15 PST 2013


Dirk Hohndel <dirk at hohndel.org> writes:
>>> So please, give it a try and find the bugs.
>>
>> There's something broken there. Go to my dives and look at the three
>> dives I have on July 29, 2011. The two latter ones have this odd
>> discontinuity at the max deco point.
>>
>> Same thing on dives on Dec 10, 2010 and Nov 25, 2009. And my blue hold
>> dive on Nov 23, 2009 has two big bits taken out of the deco thing.
>>
>> It looks like the deco ceiling just goes to zero for one plot entry,
>> and then recovers the next one..
>
> Oh yes. There are several things massively wrong. The GF handling is
> completely bogus...
>
> Look for an update soon.

Ok, I thought I had this fixed last night but was missing one crucial
part that I finally got to work. Here's the commit log for the last two
commits that should make all of this MUCH more useful.

Jan, you'll be thrilled to see that this now also supports CC ;-)

For those who like to play with this and see the impact of the Bühlmann
Gradient Factors... display the profile of a long deep dive (where you
may or may not have gone into deco). Then open the Preferences and go to
the Tec page. Turn on the calculated ceiling (and 3m increments if you
like that). And then play with the GFlow and GFhigh thresholds. Defaults
are 35/75 which is reasonably conservative. Now switch this to "wuzz
mode", maybe 5/15 (depending on your dive, you may now have violated the
deco ceiling). Or go into "tough kid" mode (95/130) - any deco left?

You get the idea...

/D

PS: I think there may still something off with the multi-dive
calculations... ran out of time with that one.

commit 6dc247ff784d5fae6ba5721ff4c9683c1749999a
Author: Dirk Hohndel <dirk at hohndel.org>
Date:   Thu Jan 3 23:56:10 2013 -0800

    Fix deco calculations to correctly use GF values and add CC support
    
    The old implementation was broken in several ways.
    
    For one thing the GF values are percentages, so they should normally be
    0 < GF < 1 (well, some crazy people like to go above that).
    
    With this most of the Bühlmann config constants were wrong.
    
    Furthermore, after we adjust the pressure tolerance based on the gradient
    factors, we need to convert this back into a depth (instead of passing
    back the unmodified depth - oops).
    
    Finally, this commit adds closed circuit support to the deco calculations.
    
    Major progress and much more useful at this stage.
    
    Signed-off-by: Dirk Hohndel <dirk at hohndel.org>

commit 75b970f7accc2498289ea646b16d6f412efd1912
Author: Dirk Hohndel <dirk at hohndel.org>
Date:   Thu Jan 3 22:41:07 2013 -0800

    Intercept all events to the GF fields in the property dialog
    
    This seems like a strange way to capture the FOCUS_CHANGE event, but
    manually trying to register a callback for it fails. Yet registering a
    callback for every event and then filtering for FOCUS_CHANGE in the
    callback works. Go figure.
    
    But with this commit you can actually change the GF settings in the
    preferences dialog and once you tab out of the entry field the change gets
    immediately applied - nice to play with the effects of changing GF values.
    
    Signed-off-by: Dirk Hohndel <dirk at hohndel.org>



More information about the subsurface mailing list