<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 25 July 2016 at 10:33, Linus Torvalds <span dir="ltr"><<a href="mailto:torvalds@linux-foundation.org" target="_blank">torvalds@linux-foundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>On Sun, Jul 24, 2016 at 4:44 PM, Linus Torvalds<br>
<<a href="mailto:torvalds@linux-foundation.org">torvalds@linux-foundation.org</a>> wrote:<br>
> On Sun, Jul 24, 2016 at 4:33 PM, John Van Ostrand <<a href="mailto:john@vanostrand.com">john@vanostrand.com</a>> wrote:<br>
>><br>
>> So rather than calculate the deco stop at 0 ft for a safe ascent to 8000 ft,<br>
>> maybe it should do a desaturation to an arbitrary percentage, like 1.5%<br>
>> above ambient at 0 ft. Isn't 6 half-times considered desaturated?<br>
><br>
> That might be a useful thing to do regardless of no-fly times. And<br>
> yes, many dive computers seem to consider the two things the same<br>
> (sometimes with a "no-fly is desat time with a minimum 24-hour")<br>
<br>
</span>Side note: I'm not going to have time to look at it, since the merge<br>
window for 4.8 just started, but I'm assuming that it should be fairly<br>
easy to just hook into calculate_deco_information() at the end, where<br>
we have the tissue saturation data set up for the after-the-dive<br>
situation.<br>
<br>
I *think* you could just solve it analytically by looking at each<br>
compartment, calculating how long to desat for that compartment<br>
(exponential decay towards surface pressure with the factors for that<br>
compartment), and just taking the max time.<br>
<br>
Sounds like something Robert could do in his sleep in five minutes. Robert?<br>
<br>
Or perhaps Rick knows what the VPM-B model considers desaturated.<br>
<span><font color="#888888"><br>
<br></font></span></blockquote><div>The VPM-B model uses the same method (ok there's a different assumption on effective water vapour partial pressure but it's nearly negligible) and same theoretical tissues as Buhlmann to track gas saturation, so the desaturation time will be the same.  The difference between the models is in how the allowable gradient (difference between current ambient pressure and tolerable ambient pressure) is calculated.</div><div><br></div><div>Something similar to how Linus calculated the no-fly time could be done with VPM-B, but I'm pretty certain it would also end up with a very low no-fly time compared to dive computer calculations and guidelines by DAN and others.  I don't think we should implement a feature that produces less than commonly accepted no-fly times, lest someone relies on it and ends up bent.</div><div><br></div><div>I wouldn't be surprised if it could be shown that the Buhlmann method could be applied to determining no-fly times, but with a different theoretical 'governing tissue' for lower than atmospheric pressure (e.g. flying), which is slower than the slowest of the 16 Buhlmann tissues.  I have no idea what half-life the governing tissue would have, or what the corresponding 'a' and 'b' factors would be.</div><div><br></div><div>Being proprietary, I don't think we will ever know how Suunto calculates no-fly times.  Maybe we could look at data from the dive computer and back-analyse something.</div><div><br></div><div>The OSTC method is apparently just a portion (default is 60%) of the desaturation time:</div><div><a href="http://forum.heinrichsweikamp.com/read.php?2,9870,9878">http://forum.heinrichsweikamp.com/read.php?2,9870,9878</a></div><div><br></div><div>A no-fly feature could be implemented, but unless an analytical method is published and accepted, I don't know what the calculations should be.  I think options for discussion could be:</div><div>1) Implement DAN's guidelines without complicated calculations: 12hr for single no-deco dive, 18hr for repetitive no-deco dive, >18hr (maybe 24hr?) for deco dives</div><div><div>2) Use the method Linus did previously, along with a really conservative factor (ignore gradient factor preference) to come up with something similar to DAN or dive computer calculations</div>3) Use the OSTC method: 60% of desaturation time (we have to determine how many half-lives there are in effective desaturation)</div><div>4) Use a Buhlmann based method, but with a really slow "tissue", fudged until we get the answer we expect</div><div>5) Something completely different - are there guidelines from someone's NAVY? NASA?</div><div><br></div><div>The problem with all these methods is that they need to be calibrated to get the expected value (or risk being more aggressive than any other recommendation).  Unless it's backed by published research, I think I'll personally stick to DAN's advice.</div><div><br></div><div>Cheers,</div><div><br></div><div>Rick</div><div><br></div></div><br></div></div>