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 mode support. #93

Merged
merged 2 commits into from
Jul 25, 2019
Merged

Conversation

douglaswsilva
Copy link
Contributor

@douglaswsilva douglaswsilva commented Jul 23, 2019

Suggestion for initial idea of how set gimbal mode will look like.

For now it is working this way, but you guys might want to wait for: mavlink/mavlink#1174

Let's open a discussion here and see what to do.


enum GimbalMode {
FOLLOW = 0;
LOCK = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please specify that this refers to YAW, so YAW_FOLLOW I'd say.

Copy link
Collaborator

@JonasVautherin JonasVautherin Jul 24, 2019

Choose a reason for hiding this comment

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

Is that (and will it always be) strictly reserved to yaw, on the gimbal side? Couldn't it follow with pitch as well?

Actually, I'm not sure what FOLLOW and LOCK mean 😅. What does it follow?

Copy link
Collaborator

Choose a reason for hiding this comment

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

YAW_FOLLOW means that the gimbal follows the autopilot yaw, so it always looks forward (although with a little bit of damping so the picture is smoother).
YAW_LOCK means that the gimbal locks onto a specific heading no matter what direction the drone faces.

Pitch is basically always in LOCK mode for multicopters because you don't want it to be influenced by the vehicle pitch.

@douglaswsilva douglaswsilva changed the title [WIP] Add gimbal mode support. Add gimbal mode support. Jul 24, 2019
@julianoes julianoes merged commit fc752c4 into mavlink:master Jul 25, 2019
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