[mavlink] Add base id and fmu id to the autpilot version message

This commit is contained in:
Niklas Hauser
2026-02-25 19:02:04 +01:00
parent 4a4c15765c
commit a78b47de28
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -1123,6 +1123,18 @@ Mavlink::send_autopilot_capabilities()
board_get_uuid32(uid);
msg.uid = (((uint64_t)uid[PX4_CPU_UUID_WORD32_UNIQUE_M]) << 32) | uid[PX4_CPU_UUID_WORD32_UNIQUE_H];
#if defined(GET_HW_BASE_ID)
msg.base_id = GET_HW_BASE_ID();
#else
msg.base_id = 0;
#endif
#if defined(GET_HW_FMUM_ID)
msg.fmu_id = GET_HW_FMUM_ID();
#else
msg.fmu_id = 0;
#endif
#ifndef BOARD_HAS_NO_UUID
px4_guid_t px4_guid;
board_get_px4_guid(px4_guid);