Fwd: sample UDDF file

Miika Turkia miika.turkia at gmail.com
Fri Mar 1 23:22:08 PST 2013


This thread is getting quite long so let me just sum up what I have
currently planned/implemented.

I do grab the otu and setpo2 from the DC copied to attributes otu and
po2 (latter converted into decimal notation).

Then I experimented with getting the device ID out of the UDDF import.
It is not at all clear what fields should be set to where, but I
currently set:
- model from manufacturer/name
- firmware from name
- serial from version

This results in following:
    <divecomputerid deviceid="ffffffff" model="heinrichs weikamp,
Germany" firmware="DR5 278 with Firmware V 1.5" serial="0.2"/>
    <divecomputerid deviceid="ffffffff" model="HeinrichsWeikamp
Germany" firmware="DR5 10 with Firmware V 0.772" serial="0.1"/>

The attached patch does what I describe here, but I can do any tuning
if so desired..especially the divecomputerid might require some
changes.

miika
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Grab-a-bit-more-info-from-UDDF-import.patch
Type: application/octet-stream
Size: 5184 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130302/a27a4bde/attachment-0001.obj>


More information about the subsurface mailing list