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

Update gimbal.cpp #2387

Merged
merged 4 commits into from
Sep 1, 2024
Merged

Update gimbal.cpp #2387

merged 4 commits into from
Sep 1, 2024

Conversation

KarthiAru
Copy link
Contributor

  • Added gimbal_id param to all the gimbal methods
  • Updated yaw values to point to NESW directions

- Added gimbal_id param to all the gimbal methods
- Updated yaw values to point to NESW directions
JonasVautherin
JonasVautherin previously approved these changes Aug 29, 2024
JonasVautherin
JonasVautherin previously approved these changes Aug 29, 2024
julianoes
julianoes previously approved these changes Aug 29, 2024
Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

👍

if (gimbal_result != Gimbal::Result::Success) {
std::cerr << "Could not take gimbal control: " << gimbal_result << '\n';
return 1;
}

// Fetch the gimbal attitude
auto [result, attitude] = gimbal.get_attitude(gimbal_id);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks :)

examples/gimbal/gimbal.cpp Outdated Show resolved Hide resolved
examples/gimbal/gimbal.cpp Show resolved Hide resolved
Removed sleep after gimbal.take_control
Copy link

sonarcloud bot commented Aug 30, 2024

@julianoes julianoes merged commit 6106bf7 into mavlink:main Sep 1, 2024
33 checks passed
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