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

Add gimbal v2 status and mission items #1233

Merged
merged 6 commits into from
Oct 23, 2020

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Oct 21, 2020

This enables:

  • attitude feedback for the gimbal v2 protocol
  • mission items using gimbal v2 protocol

@julianoes julianoes changed the title telemetry: add gimbal v2 attitude status Add gimbal v2 status and mission items Oct 21, 2020
@julianoes
Copy link
Collaborator Author

@JonasVautherin thanks for the review. I'm just waiting for mavlink/MAVSDK-Proto#184 before pushing here again.

This enable the attitude feedback for the gimbal v2 MAVLink protocol.
This adds support to inject the gimbal attitude using the MAVLink gimbal
v2 protocol instead of the deprecated v1 protocol.

The v1 protocol is still useable if the autopilot does not seem to
support v2, so if it does not respond to the request for
GIMBAL_MANAGER_INFORMATION.

The auto-detection is, for now, duplicated from the gimbal plugin. The
idea is that plugins don't depend on each other to prevent dependency
problems. In the future we might consider moving the v1 vs v2 check into
the system but then again, we don't want to litter the system too much
either. The hope is that v1 won't be around too much longer and we can
just remove the magic.
This seems to happen because of rad/deg conversions in float.
This relaxes the check for pitch and yaw gimbal angles.
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants