Re: NDL staying at 0 for a while after deco completion
Posted: Thursday 7. August 2014, 00:19
And another example, which you can reproduce with libdeco-ostc,
which uses OSTC firmware for decompression calculations:
[pre]
$ ./bin/decolint 20 33
Dive profile segments:
20m for 33min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 33min
$ ./bin/decolint 20 34
Dive profile segments:
20m for 34min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 34min
$ ./bin/decolint 20 35
Dive profile segments:
20m for 35min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 35min
[/pre]
To my knowledge above is not bug in libdeco-ostc, but some *possible*
problem with OSTC NDL calculations. Happy to be proved wrong, but please
take a look at debug messages I have put inside OSTC code - OSTC starts to
report 0 minute NDL from the 1958th second to the 2100th second (32min - 35min)
for the last example above (20m/35min). The attached file contains
the debug messages.
The above problem is very similar to what I have experienced on the dive - at
the edge of non-deco and deco stages of a dive, the OSTC firmware stucks
at 0min NDL.
I looked today at sim_ascent_to_first_stop and calc_nextdecodepth functions,
because both try to calculate depth of first deco stop and both can hit
the surface without finding first deco stop and I was suspecting that maybe
in some situations, they got stuck in some weird mode. Found nothing, so now
I suspect the function calculating NDL.
which uses OSTC firmware for decompression calculations:
[pre]
$ ./bin/decolint 20 33
Dive profile segments:
20m for 33min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 33min
$ ./bin/decolint 20 34
Dive profile segments:
20m for 34min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 34min
$ ./bin/decolint 20 35
Dive profile segments:
20m for 35min
GF Low: 30%, GF High: 85%
Surface pressure: 1013 millibar
Gas list:
o2=21%, he=0% at 0m
NDL (ZH-L16C): 35min
[/pre]
To my knowledge above is not bug in libdeco-ostc, but some *possible*
problem with OSTC NDL calculations. Happy to be proved wrong, but please
take a look at debug messages I have put inside OSTC code - OSTC starts to
report 0 minute NDL from the 1958th second to the 2100th second (32min - 35min)
for the last example above (20m/35min). The attached file contains
the debug messages.
The above problem is very similar to what I have experienced on the dive - at
the edge of non-deco and deco stages of a dive, the OSTC firmware stucks
at 0min NDL.
I looked today at sim_ascent_to_first_stop and calc_nextdecodepth functions,
because both try to calculate depth of first deco stop and both can hit
the surface without finding first deco stop and I was suspecting that maybe
in some situations, they got stuck in some weird mode. Found nothing, so now
I suspect the function calculating NDL.