<div dir="ltr"><br><div class="gmail_extra">Hi Willem,<br><div class="gmail_quote">On 16 October 2017 at 16:32, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Robert, Stefan,<br>
<br>
After your recent work on the planner, has anything changed in the planner UI or the way it functions? I do not see anything but I can hardly think that this could be the case after all your work.<br>
<br></blockquote><div>There are only two feature changes in the planner that I'm aware of:<br><br>1) Plan variations (Robert).  Activated by notes option "Display plan variations", it prints the rate of difference in decompression time required for increasing/reducing the bottom time and depth.  This is an advanced feature of the planner, useful for on-the-fly estimates (and theoretical considerations/comparisons) of required decompression for small adjustments to bottom time and/or depth, and an alternative to writing out several plan contingencies.<br><br>Using the feature for contingency planning, it is up to the diver to decide where the time should be added  / subtracted (and of course whether they are comfortable with this method of calculating plan variations).  The relationships between bottom time and depth, and decompression time are not linear in general, but for small adjustments linear approximation is reasonable.  In the example below, the plan variations line says that changing the 
dive depth leads to change in required decompression time by +/-1:30 per
 metre, and varying bottom time changes required decompression time by 
+/- 1:26 per minute. If the diver gets to the bottom and realises the depth is only 38m (not the 40m planned), the diver could choose to reduce decompression by 2m * 1:32 /m = 3:04 ~ 3min.  E.g. the diver could decide to reduce the 6m stop by 2min, and the 12m stop by 1min.  Alternatively, the diver could choose to extend the bottom time by 2min (leading to an increase in decompression time of 2 * 1:27 = 2:54 ~ 3min), and follow the original decompression schedule.<br></div><div></div><div><br></div><div><span style="font-weight:600">Subsurface (4.6.4.986) dive plan</span> created on 10/16/17<br>Runtime: 57min + 1:32 /m + 1:27 /min<br>
<table style="margin:0px" border="0" cellspacing="2" cellpadding="0"><thead>
<tr>
<td><br></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">depth</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">duration</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">runtime</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">gas</span></p></td></tr></thead>
<tbody><tr>
<td>
<p style="margin:0px;text-indent:0px">➘</p></td>
<td>
<p style="margin:0px;text-indent:0px">40m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">(21/35)</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➙</p></td>
<td>
<p style="margin:0px;text-indent:0px">40m</p></td>
<td>
<p style="margin:0px;text-indent:0px">28min</p></td>
<td>
<p style="margin:0px;text-indent:0px">30min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">32min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">33min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">EAN50</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">12m</p></td>
<td>
<p style="margin:0px;text-indent:0px">3min</p></td>
<td>
<p style="margin:0px;text-indent:0px">36min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">9m</p></td>
<td>
<p style="margin:0px;text-indent:0px">3min</p></td>
<td>
<p style="margin:0px;text-indent:0px">39min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">6m</p></td>
<td>
<p style="margin:0px;text-indent:0px">18min</p></td>
<td>
<p style="margin:0px;text-indent:0px">57min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">0m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">58min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr></tbody></table>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px;text-indent:0px">CNS: 21%<br>OTU: 59<br></p>
<p style="margin:0px;text-indent:0px">Deco model: Bühlmann ZHL-16C with GFLow = 40% and GFHigh = 85%<br>ATM pressure: 1013mbar (0m)<br></p>
<p style="margin:0px;text-indent:0px">Gas consumption (based on SAC 20|20ℓ/min):<br>3078ℓ/136bar of <span style="font-weight:600;color:rgb(255,0,0)">(21/35)</span> (172ℓ/7bar in planned ascent)<br> — <span style="color:rgb(0,128,0)">Minimum gas</span> (based on 3.0xSAC/+2min@40m): 1124ℓ/47bar/<span style="color:rgb(0,128,0)">Δ:+57bar</span><br>904ℓ/82bar of <span style="font-weight:600;color:rgb(255,0,0)">EAN50</span> (904ℓ/86bar in planned ascent)</p><br><br></div><div>Comparison with 2m shallower dive plan - note this is the same as taking 2min from the 6m stop, and 1min from the 12m stop from the 40m decompression schedule<br><br><span style="font-weight:600"></span><span style="font-weight:600">Subsurface (4.6.4.986) dive plan</span> created on 10/16/17<br>Runtime: 54min + 1:19 /m + 1:10 /min<br>
<table style="margin:0px" border="0" cellspacing="2" cellpadding="0"><thead>
<tr>
<td><br></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">depth</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">duration</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">runtime</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">gas</span></p></td></tr></thead>
<tbody><tr>
<td>
<p style="margin:0px;text-indent:0px">➘</p></td>
<td>
<p style="margin:0px;text-indent:0px">38m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">(21/35)</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➙</p></td>
<td>
<p style="margin:0px;text-indent:0px">38m</p></td>
<td>
<p style="margin:0px;text-indent:0px">28min</p></td>
<td>
<p style="margin:0px;text-indent:0px">30min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">32min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">33min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">EAN50</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">12m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">35min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">9m</p></td>
<td>
<p style="margin:0px;text-indent:0px">3min</p></td>
<td>
<p style="margin:0px;text-indent:0px">38min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">6m</p></td>
<td>
<p style="margin:0px;text-indent:0px">16min</p></td>
<td>
<p style="margin:0px;text-indent:0px">54min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">0m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">55min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr></tbody></table><br><br>Comparison with 2m shallower and 2min longer bottom time plan - note this is nearly the same (1min less on final stop) as the 40m 30min dive plan decompression schedule<br><br><span style="font-weight:600">Subsurface (4.6.4.986) dive plan</span> created on 10/16/17<br>Runtime: 58min + 1:34 /m + 1:21 /min<br>
<table style="margin:0px" border="0" cellspacing="2" cellpadding="0"><thead>
<tr>
<td><br></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">depth</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">duration</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">runtime</span></p></td>
<td>
<p style="margin:0px;text-indent:0px" align="center"><span style="font-weight:600">gas</span></p></td></tr></thead>
<tbody><tr>
<td>
<p style="margin:0px;text-indent:0px">➘</p></td>
<td>
<p style="margin:0px;text-indent:0px">38m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">(21/35)</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➙</p></td>
<td>
<p style="margin:0px;text-indent:0px">38m</p></td>
<td>
<p style="margin:0px;text-indent:0px">30min</p></td>
<td>
<p style="margin:0px;text-indent:0px">32min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">2min</p></td>
<td>
<p style="margin:0px;text-indent:0px">34min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">21m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">35min</p></td>
<td>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600;color:rgb(255,0,0)">EAN50</span></p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">12m</p></td>
<td>
<p style="margin:0px;text-indent:0px">3min</p></td>
<td>
<p style="margin:0px;text-indent:0px">38min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">9m</p></td>
<td>
<p style="margin:0px;text-indent:0px">3min</p></td>
<td>
<p style="margin:0px;text-indent:0px">41min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">-</p></td>
<td>
<p style="margin:0px;text-indent:0px">6m</p></td>
<td>
<p style="margin:0px;text-indent:0px">17min</p></td>
<td>
<p style="margin:0px;text-indent:0px">58min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr>
<tr>
<td>
<p style="margin:0px;text-indent:0px">➚</p></td>
<td>
<p style="margin:0px;text-indent:0px">0m</p></td>
<td>
<p style="margin:0px;text-indent:0px">1min</p></td>
<td>
<p style="margin:0px;text-indent:0px">59min</p></td>
<td>
<p style="margin:0px;text-indent:0px"> </p></td></tr></tbody></table><br></div><div>I'm hoping this could be explained more concisely in the user manual.  Robert?<br><br></div><div>2) Minimum gas pressure delta (Stefan)<br></div><div>I think this feature is great, but unfortunately not intuitive.  I only worked out what it meant by reading the commit diff.  It should be documented in the user manual.  It tells you how much gas you should have in reserve at the end of your bottom time in excess of what is required for the calculated Minimum Gas.  From the example above<br> — <span style="color:rgb(0,128,0)">Minimum gas</span> (based on 3.0xSAC/+2min@40m): 1124ℓ/47bar/<span style="color:rgb(0,128,0)">Δ:+57bar</span><span style="color:rgb(0,128,0)"></span></div><div>This tells the user they should have 57bar more than their Minimum Gas requirement at the end of their planned bottom phase.<span style="color:rgb(0,128,0)"><br></span></div><div></div><div><br></div><div>Like with the existing minimum gas calculation, it only applies when cylinder sizes and pressures have been defined.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The planning using VPM-B is still pretty broken. The ceiling generated is just totally wrong. </blockquote><div><br></div><div>Can you please test the latest master / daily builds?  My commit f9d05a8 a week ago should have corrected the *totally* wrong ceiling, but there may be more bugs.  If it's still not right we need to fix that.<br><br></div><div>The issue "Deco ceiling calculation for EAN32 dive with 3m steps on/off - very strange results #630" (<a href="https://github.com/Subsurface-divelog/subsurface/issues/630">https://github.com/Subsurface-divelog/subsurface/issues/630</a>) is still open, but I can't reproduce it using Dirk's 4.6.4.986 Windows daily build.  Stefan, can you please confirm if it has been fixed, and if not provide more detail what's wrong?<br></div><div><br></div><div>Cheers,<br><br></div><div>Rick<br></div><div><span class="gmail-HOEnZb"><br></span></div></div></div></div>