mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Set EON Steel sample interval to 10s on
This sets the Suunto EON Steel sample interval to 10 seconds when exporting to divelogs.de. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									2286bc89de
								
							
						
					
					
						commit
						5ab0cac1ca
					
				
					 1 changed files with 25 additions and 17 deletions
				
			
		|  | @ -206,29 +206,37 @@ | ||||||
|     </xsl:variable> |     </xsl:variable> | ||||||
| 
 | 
 | ||||||
|     <SAMPLEINTERVAL> |     <SAMPLEINTERVAL> | ||||||
|       <xsl:variable name="first"> |  | ||||||
|         <xsl:call-template name="time2sec"> |  | ||||||
|           <xsl:with-param name="time"> |  | ||||||
|             <xsl:value-of select="node()/sample[1]/@time"/> |  | ||||||
|           </xsl:with-param> |  | ||||||
|         </xsl:call-template> |  | ||||||
|       </xsl:variable> |  | ||||||
|       <xsl:variable name="second"> |  | ||||||
|         <xsl:call-template name="time2sec"> |  | ||||||
|           <xsl:with-param name="time"> |  | ||||||
|             <xsl:value-of select="node()/sample[2]/@time"/> |  | ||||||
|           </xsl:with-param> |  | ||||||
|         </xsl:call-template> |  | ||||||
|       </xsl:variable> |  | ||||||
|       <xsl:choose> |       <xsl:choose> | ||||||
|         <xsl:when test="$manual = 0"> |         <xsl:when test="divecomputer/@model = 'Suunto EON Steel'"> | ||||||
|           <xsl:value-of select="$second - $first"/> |           <xsl:text>10</xsl:text> | ||||||
|         </xsl:when> |         </xsl:when> | ||||||
|         <xsl:otherwise> |         <xsl:otherwise> | ||||||
|           <xsl:value-of select="60"/> |           <xsl:variable name="first"> | ||||||
|  |             <xsl:call-template name="time2sec"> | ||||||
|  |               <xsl:with-param name="time"> | ||||||
|  |                 <xsl:value-of select="node()/sample[1]/@time"/> | ||||||
|  |               </xsl:with-param> | ||||||
|  |             </xsl:call-template> | ||||||
|  |           </xsl:variable> | ||||||
|  |           <xsl:variable name="second"> | ||||||
|  |             <xsl:call-template name="time2sec"> | ||||||
|  |               <xsl:with-param name="time"> | ||||||
|  |                 <xsl:value-of select="node()/sample[2]/@time"/> | ||||||
|  |               </xsl:with-param> | ||||||
|  |             </xsl:call-template> | ||||||
|  |           </xsl:variable> | ||||||
|  |           <xsl:choose> | ||||||
|  |             <xsl:when test="$manual = 0"> | ||||||
|  |               <xsl:value-of select="$second - $first"/> | ||||||
|  |             </xsl:when> | ||||||
|  |             <xsl:otherwise> | ||||||
|  |               <xsl:value-of select="60"/> | ||||||
|  |             </xsl:otherwise> | ||||||
|  |           </xsl:choose> | ||||||
|         </xsl:otherwise> |         </xsl:otherwise> | ||||||
|       </xsl:choose> |       </xsl:choose> | ||||||
|     </SAMPLEINTERVAL> |     </SAMPLEINTERVAL> | ||||||
|  | 
 | ||||||
|     <xsl:for-each select="divecomputer[1]/sample"> |     <xsl:for-each select="divecomputer[1]/sample"> | ||||||
|       <xsl:choose> |       <xsl:choose> | ||||||
|         <xsl:when test="$manual = 1 and @time != '0:00 min'"> |         <xsl:when test="$manual = 1 and @time != '0:00 min'"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue