mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:41:42 +08:00
mavlink uses simpler common bord indentity api
This commit is contained in:
committed by
Lorenz Meier
parent
138f0378a7
commit
8ba1ffafec
@@ -1307,9 +1307,9 @@ void Mavlink::send_autopilot_capabilites()
|
|||||||
#else
|
#else
|
||||||
msg.product_id = 0;
|
msg.product_id = 0;
|
||||||
#endif
|
#endif
|
||||||
raw_uuid_uint32_t uid;
|
uuid_uint32_t uid;
|
||||||
board_get_uuid_raw32(uid, NULL);
|
board_get_uuid32(uid);
|
||||||
msg.uid = (((uint64_t)uid[1]) << 32) | uid[2];
|
msg.uid = (((uint64_t)uid[PX4_CPU_UUID_WORD32_UNIQUE_M]) << 32) | uid[PX4_CPU_UUID_WORD32_UNIQUE_H];
|
||||||
|
|
||||||
mavlink_msg_autopilot_version_send_struct(get_channel(), &msg);
|
mavlink_msg_autopilot_version_send_struct(get_channel(), &msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user