projecthorus/horusdemodlib

custom_field_add for df7pn

whallmann opened this issue · 5 comments

Hi Mark,
would you please add this custom_field_list to the repository.
I will experiment a bit.
Maybe you are able to translate the field "sonde_type" from a number into text?
The list is appended below. Tnx. Wolf DF7PN

"DF7PN": {
    "comment": "private values see https://github.com/whallmann/RS41HUP_V2",
    "struct": "<HHxxxx",
    "fields": [
        ["flight_number", "none"],
        ["sonde_type", "none"]
    ]
},

So this is the edited version of my request. please drop it to the list. Thanks.

Done!

Any idea why horusdemodlib says that there is an error in fieldlist (8) after restart?
Short dump:
2024-01-30 16:53:54,600 INFO: Opened log file telemetry.log.
2024-01-30 16:53:54,602 INFO: Attempting to download latest payload ID list from GitHub...
2024-01-30 16:53:54,979 INFO: Attempting to download latest custom field list from GitHub...
2024-01-30 16:53:55,309 ERROR: Struct field for DF7PN has incorrect length (8).
2024-01-30 16:53:55,313 INFO: Payload list contains 387 entries.
2024-01-30 16:53:55,314 INFO: Custom Field list contains 13 entries.
2024-01-30 16:53:55,318 INFO: Sondehub Amateur Uploader - Started Sondehub Amateur Uploader Thread.

Because the struct field was missing a 'x' to make it the required 9 bytes :-)

Fixed now.