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

ak09916: fixed driver not reporting magnetometer as external #12554

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

RomanBapst
Copy link
Contributor

Tested on Pixhawk cube + Here 2 gps.
Magnetometer is now detected as external and QGC gives the option to specify the mag orientation.

image

Signed-off-by: RomanBapst <bapstroman@gmail.com>
@RomanBapst RomanBapst requested review from dagar and bkueng July 25, 2019 08:15
@RomanBapst
Copy link
Contributor Author

Fixes #12548

@RomanBapst
Copy link
Contributor Author

@davids5 FYI

@julianoes
Copy link
Contributor

@RomanBapst so this driver is only ever used for the external Here 2 GPS and never internal?

Copy link
Contributor

@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.

Aha!

@@ -252,6 +252,7 @@ AK09916::measure()
}

_px4_mag.set_error_count(perf_event_count(_mag_errors));
_px4_mag.set_external(external());
_px4_mag.update(timestamp_sample, raw_data.x, raw_data.y, raw_data.z);
Copy link
Member

Choose a reason for hiding this comment

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

@RomanBapst - That all make sense now. Good catch!

@VinniF
Copy link

VinniF commented Sep 17, 2021

Hi, I have the same issue that the Here2 is not detected as a magnetometer
our (older) firmware version does not seem to include this driver yet. Can I just pull the folder from the repo and paste it into my firmware and add the folder to the cmake?
grafik

grafik

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.

4 participants