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

Fix for heading > 180 degrees or < -180 degrees with magnetic declination #17

Open
wants to merge 3 commits into
base: upstream_shared
Choose a base branch
from

Conversation

Batperson
Copy link

If a magnetic declination is specified, this value is simply added to the heading computed by the flight controller. As a result if the heading returned by the magnetometer is 170 degrees and you have specified a declination of 20 degrees the heading reported by Multiwii is 190 degrees instead of -170.

Display correct headings when magnetic declination has been
added/subtracted, i.e. do not display values such as 200, -185 etc.
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.

1 participant