mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 07:52:44 +08:00
PX4 today only produces GIMBAL_MANAGER_INFORMATION/STATUS (as its own gimbal manager); it has no way to learn about a gimbal manager running on another component. To interoperate with an external gimbal manager (e.g. a smart camera-gimbal that runs its own manager), PX4 needs to discover it and track who currently controls it. Decode incoming GIMBAL_MANAGER_INFORMATION and GIMBAL_MANAGER_STATUS from other components into the new external_gimbal_manager_information and external_gimbal_manager_status uORB topics, carrying the manager's sysid and compid from the message frame. Messages originating from our own system/component are ignored so we don't ingest our own streamed manager messages. This is the awareness layer that a gimbal-manager client output builds on. Signed-off-by: Julian Oes <julian@oes.ch>
16 lines
552 B
Plaintext
16 lines
552 B
Plaintext
# Status of a gimbal manager running on another component (not us), decoded from
|
|
# an incoming GIMBAL_MANAGER_STATUS message. Used to track which component
|
|
# currently controls an external gimbal manager.
|
|
|
|
uint64 timestamp # time since system start (microseconds)
|
|
|
|
uint8 manager_sysid # system id of the external gimbal manager
|
|
uint8 manager_compid # component id of the external gimbal manager
|
|
|
|
uint32 flags
|
|
uint8 gimbal_device_id
|
|
uint8 primary_control_sysid
|
|
uint8 primary_control_compid
|
|
uint8 secondary_control_sysid
|
|
uint8 secondary_control_compid
|