Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTOPILOT.capabilities includes gimbal manager protocol bit #23692

Conversation

hamishwillee
Copy link
Contributor

MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER was added in mavlink/mavlink#2144 to allow a GCS to query if an autopilot/component supports gimbal managers.

This sets the bit to be output.

Note, PX4 may not yet have updated MAVLink to get this bit (so may fail tests). Also may need more robust setting. This is so we don't forget.

@julianoes julianoes force-pushed the pr_hamishw_MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER branch from 0b2f0e3 to 3aac3fb Compare October 9, 2024 07:58
@julianoes
Copy link
Contributor

Ah I see, so now the problem is that the param might not be in the build. This means I need to resort to the old param API.

@julianoes julianoes requested a review from bkueng October 9, 2024 08:17
@julianoes
Copy link
Contributor

Depends on PX4/PX4-SITL_gazebo-classic#1057.

hamishwillee and others added 5 commits October 17, 2024 09:22
Sets MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER bit in AUTOPILOT.capabilities
We should probably only set the flag if the gimbal manager is actually
set up using the MNT_MODE_IN parameter.
If the gimbal module is not built in we don't have the MNT_MODE_IN
param, so we need to deal with that.
@julianoes julianoes force-pushed the pr_hamishw_MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER branch from e4b890e to 828ed0d Compare October 16, 2024 20:24
@hamishwillee hamishwillee merged commit b390d58 into main Oct 16, 2024
57 checks passed
@hamishwillee hamishwillee deleted the pr_hamishw_MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER branch October 16, 2024 21:41
@hamishwillee
Copy link
Contributor Author

Thanks @bkueng for review and @julianoes for getting this in.

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.

3 participants