You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is a mistake.
In the MAL / CZMQ implementation the MAL__ATTRIBUTE_TAG constants correspond to the type selector in the mal_attribute_t union. These constants should probably not be used outside of the MAL / CZMQ implementation.
Their use during encoding are described in the corresponding specification documents, for example for split-binary encoding document CCSDS 524.2-R-1 section 5.2:
Did you notice an error during your tests? If so can you describe it?
Oh that's interesting, thanks for bringing this up! It looks like there's a difference between short form and tag that's being mixed up. I'm interacting with something called the NanoSat MO Framework (NMF) and the response to my request includes the attribute type's short form values which are decoded as attribute tags in malbinary_decoder_decode_attribute. It could be that NMF is responding with short form values instead of tag values. I'll have a closer look.
The attribute type tag numbering starts from 0 instead of 1:
ccsdsmo-malc/malattributes/include/mal_attribute.h
Lines 33 to 50 in 5b73581
See section 4.3 ATTRIBUTES of the recommended standard:
https://public.ccsds.org/Pubs/521x0b2e1.pdf
This issue causes type casting errors in malbinary_decoder.c's
malbinary_decoder_decode_attribute
function:ccsdsmo-malc/malbinary/src/malbinary_decoder.c
Lines 422 to 485 in 5b73581
However, the short forms are numbered correctly:
ccsdsmo-malc/malattributes/include/malattributes.h
Lines 85 to 102 in 5b73581
This was done correctly for malgo:
https://github.com/CNES/ccsdsmo-malgo/blob/7c8058ce0673fe0ebe45a94a9e448b9a9c5ca0f1/mal/newmapping.go#L36-L156
The text was updated successfully, but these errors were encountered: