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

Manual flight: same yaw rate for PID and Mellinger #338

Merged
merged 1 commit into from
Jul 31, 2018

Conversation

whoenig
Copy link
Contributor

@whoenig whoenig commented Jun 23, 2018

The PID and mellinger controllers had different behaviors (inverse
yaw direction) in manual flight mode, see issue #335. The root cause
is that the legacy yaw input is actually inverse (with respect to
the CF coordinate system). This change changes the sign accordingly
before processing and fixes some other math issues related
to yaw control.

Tested with manual flight using PID and Mellinger controllers.

The PID and mellinger controllers had different behaviors (inverse
yaw direction) in manual flight mode, see issue bitcraze#335.  The root cause
is that the legacy yaw input is actually inverse (with respect to
the CF coordinate system). This change changes the sign accordingly
before processing and fixes some other math issues related
to yaw control.

Tested with manual flight using PID and Mellinger controllers.
@ataffanel ataffanel merged commit 3e881b6 into bitcraze:master Jul 31, 2018
@ataffanel
Copy link
Member

Thanks for the PR. I added a commit to fix the yawrate sign in the commander_generic packets as well since it caused problem for assisted modes in the client (like for flying with the flow deck)

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