I have a first version of the "Petrel Native Format" log parser working.
It turns out that while the Teric is the first Shearwater computer that no 
longer provides the old "Predator-like" log format, the new format was actually 
added way back for the Petrel, it just hadn't been documented before.
Based on the new documentation we received last week I have modified the parser 
to figure out which log format the dive computer can provide and updated it to 
parse the PNF log if that is available.

Downloads from my Teric look sane (but I have only a few dives on it and 
nothing really exciting in those dives). I'll clean up the code and post it on 
GitHub so people can take a look, and I'll also make test binaries available so 
people can try it. The interesting part is that this code will be used on most 
every current Shearwater dive computer because as I said, all but the oldest of 
them support this format and Shearwater recommends using it instead of the 
older format. Which means there's a LOT of testing we need to do to ensure that 
nothing got broken.

One of the new things in this log format is a free diving mode that allows 
storing sample at sub-one-second intervals. I am not decoding those samples, 
yet. And I am trying to figure out what to do about them in the first place, as 
a lot of the libdivecomputer (and Subsurface) code assumes a 1 second 
granularity...

Should we drop the additional samples? Should we add them all, just with the 
same time stamp? Should we increase the time stamp resolution?

Thanks

/D
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to