-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Simplify HMC5883 dirver #2809
Simplify HMC5883 dirver #2809
Conversation
…alibration of HMC5883 chip, use default values. Co-authored-by: Konstantin Sharlaimov <konstantin.sharlaimov@gmail.com>
Flown the same on OMNIBUS F3. All perfect. |
It doesn't (affect MR), not even a placebo "AH was fantasic!!!!" (which it was, as usual). Just happened to be dev HEAD. |
@stronnag eheheh. I'm still struggling to get a perfect altitude holding :) But that's another matter. I would like if you post a video of a your machine where it holds altitude for a minute in PH/AH mode :) So I can compare to mine. Thanks! |
@giacomo892 Sure. Videos are NOT my forte, but I'll try and remember next time. |
Good! |
I just tried the latest INAV Beta 1.9 on my OmnibusF4SD using the OmnibusF4PRO target and the “compass” still does not work. I have 2 of these Radiolink SE100’s, that I bought new in January ’18, and even reversed the polarity and still get nothing. Went into CLI and made sure it was set manually to QMC5883. The “GPS” functions properly. In AUTO it is still recognized as the HMC5883. |
I’ve ended up returning the unit I bought as the stated HMC5833L chip is clearly a clone/copy. Manually setting the QMC5833 doesn’t show a magnetometer is detected. Looking inside the unit, it appears the mag chip has been painted over to stop visual identification. |
@dleask |
My (2) Radiolink SE100's were purchased from Banggood. They each have the DA5883 mag chip in them. Still hoping I can eventually use them. I'll keep my fingers crossed that it all gets worked out. digitalentity is a smart fellow and so are his associates. :) |
Same here, SE100 from Banggood with DA5883. Does not work as HMC5883, as which it is detected. And does not work as QMC5883. Inav sets Mag label in the upper bar red then. |
Mine was from a UK eBay seller, there seems to be a lot with the same description containing a reference to HMC5833L magnetometer.
|
Not working on target OmnibusF4PRO. digitalentity is making the fix for INAV 1.90 RC2 |
Ok, just saw #2299 . I have also OmnibusF4 pro. |
digitalentity has made the fix with the release today of INAV 1.90 RC2. I tried it and it works exceedingly well. The Radiolink SE100 works fantastically! Thanks digitalentity! |
PoC implementation 9b02f455c7bf54c69f232c3b008bdc9f7664e4fa by @andrejpodzimek.
I've done some tests and it looks like
magGain
calculated in HMC5883 driver is between 0.8 and 1.0. Not applying per-axis gains may result in non-linearity of heading. In worst case it may lead to heading error of about 6 degrees which is probably acceptable - compass alignment error is likely to be bigger.References: #2619 (comment), #2558, #2299