There is a bug in libcanard dsdl, Please check

Just now I update libcanard, and generate DSDL
here is the bug.

uavcan/equipment/actuator/actuator_ArrayCommand.c: In function ‘uavcan_equipment_actuator_ArrayCommand_encode_internal’:

uavcan/equipment/actuator/actuator_ArrayCommand.c:41:93: error: subscripted value is neither array nor pointer nor vector
offset += uavcan_equipment_actuator_Command_encode_internal((void*)&source->commands[c], msg_buf, offset, 0);

commands[c] is wrong ,that is commands.data[c] is right.

Please fix it. thank you
and I found many place have this error

Thanks, reported: https://github.com/UAVCAN/libcanard/issues/64

fixed in upstream

Thank for your team, so fast.

1 Like