]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Add tankpressure parsing for UDDF files
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Jun 2012 19:45:09 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Jun 2012 19:45:09 +0000 (12:45 -0700)
David McNett sent me some example Cochran CAN file data, along with his
UDDF exports of same.  I still have absolutely no idea how to decode the
CAN files (although the subsurface decrypting code seems to correctly
decrypt the data, and I see binary patters rather than just noise), but
at least I can make sure we parse the UDDF portion better.

See also

  https://github.com/nugget/cochran2uddf

for David's tool to convert the Cochran CSV exports into UDDF.

Data-source: David McNett <nugget@macnugget.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse-xml.c

index 761cc3b41464ed7188f235a645cdff90c3219816..d6fc953a7cbc075bd2317ee24ce8c61314b03aea 100644 (file)
@@ -647,6 +647,7 @@ static int uddf_fill_sample(struct sample *sample, const char *name, int len, ch
        return  MATCH(".divetime", sampletime, &sample->time) ||
                MATCH(".depth", depth, &sample->depth) ||
                MATCH(".temperature", temperature, &sample->temperature) ||
+               MATCH(".tankpressure", pressure, &sample->cylinderpressure) ||
                0;
 }