<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Miika,<br>
<br>
<div class="moz-cite-prefix">Am 28.01.15 um 05:13 schrieb Miika
Turkia:<br>
</div>
<blockquote
cite="mid:CAEB307NXuaav=yR6ch=W24H3zD4TLMfQ=2Rysi9U85F6sBCBpw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">If I open your sample dive on
Subsurface, I get two tanks in the equipment tab. As there
is no gas change event to the EAN95 cylinder, the upload to
<a moz-do-not-send="true" href="http://divelogs.de">divelogs.de</a>
ignores this cylinder. (We had a complaint at some point
that unused cylinders get uploaded - this was probably due
to some DCs reporting more cylinders than was already used
during a dive.)<br>
<div><br>
When I add a gas change in Subsurface, upload to <a
moz-do-not-send="true" href="http://divelogs.de">divelogs.de</a>
includes both of these cylinders. Do you support any
events in your XML format? The gas changes are lost in the
upload and thus we end up back with only one used gas if
downloaded again to Subsurface.<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Here's a point where I would suggest to generally handle this
differently...<br>
IMHO, the gas change event is not suitable for deciding if a gas has
been used or not. <br>
<br>
Think of the growing number of sidemount divers. They use 2 separate
tanks with a reg each, mostly filled with the same gas. They switch
regs several times throughout the dive, but don't do the gas switch
in their computers, because there is no need for that (same gas). <br>
<br>
Or take the people with computer models, that don't support multiple
gasses. They might still do their deco with a second nitrox tank or
even pure oxygen for safety reasons, but don't have a possibility to
document the switch in their computer.... but they will still want
to document this in subsurface.<br>
<br>
All these examples would get a wrong SAC, because the other tanks
have not been considered, although they breathed from them.<br>
<br>
Why not simply check if the endpressure of a tank is lower than the
startpressure to decide if a tank has been used? If the pressure
changes by more than say 3% (to compensate pressure changes from
temperature), it must have been used... No error I can see using
this approach, as pressures per tank are entered individually for
each dive.<br>
<br>
This criteria could be used to decide which tanks to export and
import (or which tanks to show in the list)<br>
<br>
<blockquote
cite="mid:CAEB307NXuaav=yR6ch=W24H3zD4TLMfQ=2Rysi9U85F6sBCBpw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>I assume, you have not selected the "show unused
cylinders in equipment tab" as you are not seeing the
EAN95.<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
OK, i see them now. Thanks. Was not aware of this<br>
<br>
But I would still suggest to use another approach, see above. Your
thoughts? Dirk? Linus?<br>
<br>
Thanks as always,<br>
Rainer<br>
</body>
</html>