mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CCR patch: Import and store oxygen sensor data
This patch allows the importing of oxygen sensor and setpoint data from Poseidon CCR dive logs. 1) Change parse-xml.c to read up to three oxygen sensor values from xml. and to store the information in sample structures 2) Change parse-xml.c to read o2 setpoint values fro xml and to store it in sample structures 3) Change dive.c to delete all sensor and setpoint values where subsequent samples have sensor/setpoint values that are the same. 4) Change profile.c to store the sensor/setpoint values from the samples into plotinfo. 5) Change the sample Poseidon xml log in the dives directory to ensure the correct order and hierarchy of the dive and divecomputer nodes. [Dirk Hohndel: minor cleanup, removed debug code, whitespace] Signed-off-by: willem ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2282035a4d
commit
46bb02e8fc
4 changed files with 41 additions and 7 deletions
|
@ -1,9 +1,6 @@
|
|||
<divelog program="subsurface-import" version="2">
|
||||
<dives>
|
||||
<dive tags="rebreather" date="2011-06-14" time="11:20">
|
||||
<cylinder size='3.0 l' workpressure='200.0 bar' description='3l Mk6' o2='100.0%' start='184 bar' end='141.0 bar'/>
|
||||
<cylinder size='3.0 l' workpressure='200.0 bar' description='3l Mk6' o2='21.0%' start='181 bar' end='137.0 bar'/>
|
||||
<divecomputer model="Poseidon MkVI Discovery" dctype="CCR" no_o2sensors="2">
|
||||
<dive tags="CCR" date="2011-06-14" time="11:20">
|
||||
<notes>
|
||||
MkVI_Config v1.08
|
||||
Dive started at : 2011-06-14 11:20:36
|
||||
|
@ -47,6 +44,9 @@ Helium tension 8 : 0.0000
|
|||
Helium tension 9 : 0.0000
|
||||
---
|
||||
</notes>
|
||||
<cylinder size='3.0 l' workpressure='200.0 bar' description='3l Mk6' o2='100.0%' start='184 bar' end='141.0 bar'/>
|
||||
<cylinder size='3.0 l' workpressure='200.0 bar' description='3l Mk6' o2='21.0%' start='181 bar' end='137.0 bar'/>
|
||||
<divecomputer model="Poseidon MkVI Discovery" dctype="CCR" no_o2sensors="2">
|
||||
<sample time="0:00" depth="1 m" battery="" sensor1="0.34 bar" sensor2="NaN bar" pressure=" bar" pdiluent=" bar" setpoint="0.41 bar" temp="NaN C"/>
|
||||
<sample time="0:01" depth="1 m" battery="" sensor1="0.35 bar" sensor2="0.32 bar" pressure=" bar" pdiluent=" bar" setpoint="0.41 bar" temp="NaN C"/>
|
||||
<sample time="0:02" depth="0.5 m" battery="" sensor1="0.36 bar" sensor2="0.32 bar" pressure=" bar" pdiluent=" bar" setpoint="0.41 bar" temp="NaN C"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue