summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-30 18:46:32 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-30 13:25:08 -0700
commitfcc69103becd726463ac0e87d5d5299f6491619c (patch)
tree27f4e4967df7d19923a3e5ed8a025b842dc7ddf9
parentf6f74a0a3e2658c784ae462c3d3b552e195893a9 (diff)
downloadsubsurface-fcc69103becd726463ac0e87d5d5299f6491619c.tar.gz
Fix Shearwater import pressure data
Apparently recording cylinder pressure in PSI is not the only oddity with Shearwater Desktop. It also records half the value, so doubling the reading here. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r--xslt/shearwater.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index 074c2ebde..fe0c75e52 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -150,7 +150,7 @@
</xsl:if>
<xsl:if test="tank0pressurePSI != '' and tank0pressurePSI &gt; 0 and tank0pressurePSI &lt; 4092">
<xsl:attribute name="pressure">
- <xsl:value-of select="concat(format-number((tank0pressurePSI div 14.5037738007), '#.##'), ' bar')"/>
+ <xsl:value-of select="concat(format-number((tank0pressurePSI * 2 div 14.5037738007), '#.##'), ' bar')"/>
</xsl:attribute>
</xsl:if>
</sample>