-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add QMC5883P driver #10994
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
Add QMC5883P driver #10994
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
QMC5883P alignment is same as QMC5883L now. |
|
It would be great if someone can test this. |
im on it, what do you need I have a controller here with the QMC5883P. |
|
after a few more test we can push this on the next INAV release |
|
@synersignart You had said "Right now its detecting the Mag but wasnt able to read data off it" |
its currently working on my flight controller as is now. excuse for having it ported to the INAV 8.0.1 as I need the configurator to visualize it at the moment |
A compatible Configurator can be found at https://github.com/iNavFlight/inav-configurator/actions/runs/18541410810/artifacts/4281431148 (Linux)
I don't think there is any need for that - just need to check that it correctly reads north, south, and east and west on the bench. |
|
Ive tested it too with the compass 0-360 readout at setup its showing correctly so far I can reconfirm it again later when I get home |
|
Thank you very much, all of you! |













User description
This should close #10744
I made this driver looking into the datasheet, and I don't have the QMC5833P device, so testing is mandatory before merging.
PR Type
Enhancement
Description
This description is generated by an AI tool. It may have inaccuracies
Add QMC5883P magnetometer driver support
Implement axis transformation for QMC5883L compatibility
Register new compass hardware in detection system
Configure I2C bus and device initialization
Diagram Walkthrough
File Walkthrough
5 files
Add QMC5883P device hardware identifierImplement complete QMC5883P magnetometer driverAdd QMC5883P driver header fileIntegrate QMC5883P into compass detection systemAdd QMC5883P to magnetometer sensor enum4 files
Register QMC5883P I2C bus device configurationEnable QMC5883P in magnetometer compilation flagsAdd QMC5883P source files to buildAdd QMC5883P to magnetometer hardware settings