Skip to content

gimbal: wait for device info before announcing gimbal#2920

Merged
julianoes merged 1 commit into
mainfrom
pr-gimbal-wait-for-device-info
Jul 13, 2026
Merged

gimbal: wait for device info before announcing gimbal#2920
julianoes merged 1 commit into
mainfrom
pr-gimbal-wait-for-device-info

Conversation

@julianoes

@julianoes julianoes commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

The gimbal discovery logic intended to request GIMBAL_DEVICE_INFORMATION up to 5 times (once per heartbeat) and only announce the gimbal without vendor/model as a fallback. However, the first request was only sent on the heartbeat after GIMBAL_MANAGER_INFORMATION arrived, and the first GIMBAL_DEVICE_ATTITUDE_STATUS (streamed at 10 Hz) announced the gimbal right away, so the retry mechanism never got a chance and the gimbal list ended up with empty vendor/model names ("Continuing without GIMBAL_DEVICE_INFORMATION" warning).

Now the device info is requested immediately when the manager info arrives, and the announcement on attitude status only happens once the device info requests are exhausted (~5 s fallback for managers that never answer).

Verified against the gimbal_manager example from #2921: vendor/model are now populated on first discovery, and a manager that NAKs the device info request still gets announced via the fallback.

The discovery logic intended to request GIMBAL_DEVICE_INFORMATION up to
5 times (once per heartbeat) and only announce the gimbal without
vendor/model as a fallback. However, the first request was only sent on
the heartbeat after GIMBAL_MANAGER_INFORMATION arrived, and the first
GIMBAL_DEVICE_ATTITUDE_STATUS (streamed at 10 Hz) would announce the
gimbal right away, so the retry mechanism never got a chance and the
gimbal list ended up with empty vendor/model names.

Now the device info is requested immediately when the manager info
arrives, and the announcement on attitude status only happens once the
device info requests are exhausted.
@julianoes julianoes merged commit 703cf6f into main Jul 13, 2026
52 checks passed
@julianoes julianoes deleted the pr-gimbal-wait-for-device-info branch July 13, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant