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

fixed yaw problems in setponit_raw and setponit_position when using BODY_NED and BODY_OFFSET_NED #1537

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

zhouzhiwen2000
Copy link
Contributor

When sending yaw in BODY_NED frame using setponit_raw, not only is there a 90° offset but the direction is also reversed.
When sending yaw in BODY_NED frame using setponit_position, the direction is reversed.
The yaw is supposed to follow the 'FLU' convention in ROS, thus, a positive angle would be from F to L(anticlockwise).
The changes made should fix both problems.
They were both tested and worked as expected.

mavros/include/mavros/frame_tf.h Outdated Show resolved Hide resolved
mavros/include/mavros/frame_tf.h Outdated Show resolved Hide resolved
mavros/include/mavros/frame_tf.h Outdated Show resolved Hide resolved
@TSC21
Copy link
Member

TSC21 commented Feb 13, 2021

@zhouzhiwen2000 please also squash your commits into one or two logically different.

… frames and fix problems with yaw in setponit_raw
Copy link
Member

@TSC21 TSC21 left a comment

Choose a reason for hiding this comment

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

LGTM!

@TSC21 TSC21 requested a review from vooon February 13, 2021 21:59
Copy link
Member

@vooon vooon left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@vooon vooon added this to the Version 1.6 milestone Feb 15, 2021
@vooon vooon merged commit e881588 into mavlink:master Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants