diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-18 12:45:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-18 12:45:09 -0700 |
commit | 9c7aaed02aef077bda9b376e981fb705b8021750 (patch) | |
tree | efdf66d7b31a1ff79820ed8e65c43e2878869c08 /parse-xml.c | |
parent | 697435b249e1e2f308cc72c85180806cc0765249 (diff) | |
download | subsurface-9c7aaed02aef077bda9b376e981fb705b8021750.tar.gz |
Add tankpressure parsing for UDDF files
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>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index 761cc3b41..d6fc953a7 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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; } |