<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/02/2017 14:58, Robert Helling
      wrote:<br>
    </div>
    <blockquote
      cite="mid:13B7B4A3-F9FF-4CFE-83F7-A177FFE0CA1D@atdotde.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi,
      <div class=""><br class="">
      </div>
      <div class="">turns out this is not specific to the planner, it is
        a „feature“ of how we merge dives:</div>
      <div class=""><br class="">
      </div>
      <div class="">Looking at the code in dive.c (and the xml file),
        the information about the cylinders is per dive rather than per
        dive computer and for each computer it only states at which
        point in time we switch to which cylinder. Specifically, in the
        code it says:</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <pre style="margin-top: 0px; margin-bottom: 0px;" class=""><!--StartFragment--><span style=" color:#008000;" class="">/*</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Pick</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">whichever</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">has</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">any</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">info</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">(if</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">either).</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">Prefer</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">'a'</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#008000;" class="">*/</span></pre>
        <pre style="margin-top: 0px; margin-bottom: 0px;" class=""><span style=" color:#808000;" class="">static</span><span style=" color:#c0c0c0;" class=""> </span><span style=" color:#808000;" class="">void</span><span style=" color:#c0c0c0;" class=""> </span>merge_cylinder_type(<span style=" color:#800080;" class="">cylinder_type_t</span><span style=" color:#c0c0c0;" class=""> </span>*src,<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#800080;" class="">cylinder_type_t</span><span style=" color:#c0c0c0;" class=""> </span>*dst)</pre>
        <pre style="margin-top: 0px; margin-bottom: 0px;" class="">
<!--EndFragment--></pre>
        <div class="">I guess, that is the natural thing to do if it is
          really the same dive recorded by two dive computers (there is
          the _actual_ set of cylinders after all). I see that in your
          case where you compare the actual dive to a theoretical one,
          this makes little sense.</div>
      </div>
    </blockquote>
    I hope it does indeed make sense ??<br>
    The sense in this is to store the dive plan of a dive with the
    actual downloaded dive profile. This allows evaluation of the
    depths, gas management and the nitrogen compartment loads of the
    real dive as compared to the dive plan that was created beforehand.<br>
    <br>
    More importantly, it is a feature currently described in the user
    manual. We either need to remove that feature from the user manual
    or get it to work??<br>
    <br>
    I suspect the problem is that the dive structure currently only
    provides for a single set of cylinder definitions and cylinder
    pressures. There is simply no place to store a second set of such
    data. The question is whether there is a reasonably do-able approach
    to display both the dive and its dive plan, or whether we should
    just abandon this idea and remove all references to such a facility.<br>
    <br>
    Kind regards,<br>
    willem<br>
    <br>
    <p><br>
    </p>
  </body>
</html>