mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:43:34 +08:00
cmake use standard mechanisms for settings flags
This commit is contained in:
committed by
David Sidrane
parent
11be2b8873
commit
3e0a3559a9
@@ -1337,7 +1337,7 @@ void Mavlink::send_autopilot_capabilites()
|
||||
memcpy(&msg.uid2, &px4_guid, sizeof(msg.uid2));
|
||||
#endif /* BOARD_HAS_NO_UUID */
|
||||
|
||||
#ifdef CONFIG_ARCH_BOARD_SITL
|
||||
#ifdef CONFIG_ARCH_BOARD_PX4_SITL
|
||||
// To avoid that multiple SITL instances have the same UUID, we add the mavlink
|
||||
// system ID. We subtract 1, so that the first UUID remains unchanged given the
|
||||
// default system ID is 1.
|
||||
@@ -1345,7 +1345,7 @@ void Mavlink::send_autopilot_capabilites()
|
||||
// Note that the UUID show in `ver` will still be the same for all instances.
|
||||
msg.uid += mavlink_system.sysid - 1;
|
||||
msg.uid2[0] += mavlink_system.sysid - 1;
|
||||
#endif
|
||||
#endif /* CONFIG_ARCH_BOARD_PX4_SITL */
|
||||
mavlink_msg_autopilot_version_send_struct(get_channel(), &msg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user