Support for 2 cylinders on Shearwater XML import

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-09-13 20:47:42 +03:00 committed by Dirk Hohndel
parent 5afa5ed9f1
commit baa60e1077

View file

@ -149,10 +149,15 @@
</xsl:attribute>
</xsl:if>
<xsl:if test="tank0pressurePSI != '' and tank0pressurePSI &gt; 0 and tank0pressurePSI &lt; 4092">
<xsl:attribute name="pressure">
<xsl:attribute name="pressure0">
<xsl:value-of select="concat(format-number((tank0pressurePSI * 2 div 14.5037738007), '#.##'), ' bar')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="tank1pressurePSI != '' and tank1pressurePSI &gt; 0 and tank1pressurePSI &lt; 4092">
<xsl:attribute name="pressure1">
<xsl:value-of select="concat(format-number((tank1pressurePSI * 2 div 14.5037738007), '#.##'), ' bar')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="currentNdl != ''">
<xsl:attribute name="ndl">
<xsl:value-of select="concat(currentNdl, ':00 min')"/>