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

Compass calibration #6947

Closed
hidrajulika opened this issue May 10, 2021 · 6 comments
Closed

Compass calibration #6947

hidrajulika opened this issue May 10, 2021 · 6 comments

Comments

@hidrajulika
Copy link

Hello,

Sorry if this is not the right place to ask but I'm struggling with compass, since my module is in angle with the FC. The compass module is 15 degree tiled to the FC (in order to have a better GPS orientation to the sky in most long-range flying conditions.) This is a simple 6inch quad.

So after playing around with orientation (flip cw90 works best) and calibrating, the following result I can achieve:

When I point the quad to 0deg (North) it shows 0deg. When I turn it to 90deg it shows 120-is. When I point it to 180 it shows correct 180. The other half is the same non-linearity.
If I point the quad to 0deg, and pitch it, the heading goes off. (The pitch affect the heading reading.)
I suppose it is due to the tilted module.

I find no way to fix it.
I tried the mag alignments (flip/nonflip 0,90,180,270), the above mentioned works best.
I was playing with align_mag_pitch etc values, without luck (no documentation I found on that).
I tried align_mag_pitch 1950 and 1650 and align_mag_yaw 90, but it was always doing some nonsense.

The module is a BN-880.
The FC is a Matek 405 clone (Eachine)
I tried INAV 2.6.0 and 2.6.1 the results are the same.

Any advice or a clear info on align_mag_... settings would be welcomed.

@breadoven
Copy link
Collaborator

breadoven commented May 11, 2021

I found these useful especially the part where you have the GPS tilted:

#5405
#6232 (comment)

I assume you have the connector to the rear. That's supposed to be the way the BN880 is mounted.

@hidrajulika
Copy link
Author

Hello breadoven,
Thank you I'm checking the references. The connector is to the front on my build. Why would be this a problem?

@hidrajulika
Copy link
Author

hidrajulika commented May 11, 2021

Hello again,

And thank you breadoven, your references seem to have lead me to solution.
At least on the bench... , but this should work.
As my BN880 has connectors to the front, with 15deg backtilt the working settings for me are:

align_mag_roll = 1500 align_mag_pitch = 1800 align_mag_yaw = 900

@breadoven
Copy link
Collaborator

The BN880 compass module supposedly has an arrow on it but it's hidden by the GPS that's stuck on top. Shouldn't matter though if you allow for it in the settings.

https://www.unmannedtechshop.co.uk/product/beitian-bn-880-gps-compass-module/

@hidrajulika
Copy link
Author

Well yes, and exactly this picture makes me don't understand why CW90 works for me and CW270 for others... This should be either 0 or 180... Maybe the sensor is mounted 90 degree different to the board in reality than indicated on this picture, or I'm getting something terribly wrong. Anyways the settings I posted before yield a bulletproof orientation indication, at least in hand, so it'll work like that I believe. Once it proven to be good out in the field, I'll mark this thread as closed.

@hidrajulika
Copy link
Author

By the aboves, now it works in hand, and RTH in the field too.

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

No branches or pull requests

2 participants