mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-08 14:28:52 +08:00
[mavlink] Add base id and fmu id to the autpilot version message
This commit is contained in:
Submodule src/modules/mavlink/mavlink updated: 1ba67b3c9c...c6c61a8936
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user