mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Parse MacDive gas usage from gases list
Gas change events can be parsed properly from the gases list with clear information on what the gas mixture was. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									381f702017
								
							
						
					
					
						commit
						30a60f34b6
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		|  | @ -208,6 +208,21 @@ | ||||||
|         </cylinder> |         </cylinder> | ||||||
|       </xsl:for-each> |       </xsl:for-each> | ||||||
| 
 | 
 | ||||||
|  |       <xsl:for-each select="gases/gas"> | ||||||
|  |         <event name="gaschange"> | ||||||
|  |           <xsl:attribute name="time"> | ||||||
|  |             <xsl:call-template name="sec2time"> | ||||||
|  |               <xsl:with-param name="timeSec"> | ||||||
|  |                 <xsl:value-of select="sum(preceding-sibling::gas/duration)"/> | ||||||
|  |               </xsl:with-param> | ||||||
|  |             </xsl:call-template> | ||||||
|  |           </xsl:attribute> | ||||||
|  |           <xsl:attribute name="value"> | ||||||
|  |             <xsl:value-of select="helium * 65536 + oxygen"/> | ||||||
|  |           </xsl:attribute> | ||||||
|  |         </event> | ||||||
|  |       </xsl:for-each> | ||||||
|  | 
 | ||||||
|       <xsl:if test="diveMaster"> |       <xsl:if test="diveMaster"> | ||||||
|         <divemaster> |         <divemaster> | ||||||
|           <xsl:value-of select="diveMaster"/> |           <xsl:value-of select="diveMaster"/> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue