Hi.
When sending both single- and multi-frame CanardTransfers, I’ve found that the value of payload_size on the receiving node differs from its value on the sending node. For example, here is an excerpt from my logger output on the receiving node. The parenthesized value is the value of CanardTransfer.payload_size on the sending node.
“incorrect length: 147 (144)”
“incorrect length: 108 (100)”
“incorrect length: 124 (115)”
“incorrect length: 92 (86)”
“incorrect length: 15 (14)”
“incorrect length: 31 (25)”
The reported size is always larger than the expected size, and the difference to the correct value appear to be consistent for a given length, but varies from 1 to 9.
Is this expected behavior?
Version info:
#define CANARD_VERSION_MAJOR 1
#define CANARD_VERSION_MINOR 0
#define CANARD_UAVCAN_SPECIFICATION_VERSION_MAJOR 1
#define CANARD_UAVCAN_SPECIFICATION_VERSION_MINOR 0
Thanks,
-Nick