Px4-autopilot: Add new Compass QMC5883

Created on 12 Dec 2018  路  9Comments  路  Source: PX4/PX4-Autopilot

The Honeywell HMC5883/HMC5983 compasses are discontinued and hardware provider are having to switch to alternatives. The QMC5883 is such an alternative. It is pin compatible with HMC5883/HMC5983. But the device adress is different.

I falshed Pixwark MINI with newly 1.8.2 stable firmware, but I found that the firmware don't support QMC5883.

Most helpful comment

I have basic functionality implemented in this WIP pull request.

The sample rate, range, and other configs are all fixed and that functionality can be added later. But it does work.

All 9 comments

What are you using with a QMC5883?

There is a compass in the GPS module as an external compass.

Which one specifically? If you can point at one I can purchases I'll look at adding this driver.

Try this one QMC5883L

We are using this HolyBro Micro m8N GPS module which now has the QMC5883 (website is currently out of date)

I'd like to support this however I can. I see Ardupilot already has their driver written. Has anyone made a branch and started work?

@dagar @dlwalter Thanks a lot for your work. I think lots of manufacturer need this driver.

I have basic functionality implemented in this WIP pull request.

The sample rate, range, and other configs are all fixed and that functionality can be added later. But it does work.

If anyone is adding this to their stable branch there are some changes that need to be made like the inclusion of MAGIOSELFTEST case to the ioctl() function. It looks like some of those ioctl() cases were removed in the latest master but will give errors during preflight checks on stable 1.8.2

The PR was merged into master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianoes picture julianoes  路  3Comments

huangwen0907 picture huangwen0907  路  3Comments

dk7xe picture dk7xe  路  3Comments

Stifael picture Stifael  路  3Comments

bthnekn picture bthnekn  路  4Comments