mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-19 04:50:35 +08:00
microdds_client: add XRCE_DDS_KEY parameter
Multiple agents can connect to the same client
For sitl builds, if the intance number is different from zero,
XRCE_DDS_KEY is set to the instance number and
the microdds_client is automatically started
with namespace
px4_"instance_number"
and udp port 8888
If the instance number is equal to zero
XRCE_DDS_KEY is left untouched and
the microdds_client is automatically started
without namespace
and udp port 8888
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it>
This commit is contained in:
committed by
Daniel Agar
parent
a92897fb58
commit
5a2e41c4e4
@@ -92,7 +92,8 @@ private:
|
||||
Timesync _timesync{};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamInt<px4::params::XRCE_DDS_DOM_ID>) _param_xrce_dds_dom_id
|
||||
(ParamInt<px4::params::XRCE_DDS_DOM_ID>) _param_xrce_dds_dom_id,
|
||||
(ParamInt<px4::params::XRCE_DDS_KEY>) _param_xrce_key
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user