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

GPS Model is not aligned wth North direction. #2061

Open
mmosca opened this issue May 5, 2024 · 7 comments
Open

GPS Model is not aligned wth North direction. #2061

mmosca opened this issue May 5, 2024 · 7 comments

Comments

@mmosca
Copy link
Collaborator

mmosca commented May 5, 2024

These pictures were taken in the alignment tool, with the gps in the same orientation (CW 270 FLIP) If the Arrow on the GPS is supposed to point North, it does not match the axis view (X axis is yellow and is supposed to point North.

North Arrow pointing to the back of the quad:
image

X Axis pointing to left side of the quad:
image

This is probably one of the sources of confusion in the alignment tool.

@mmosca
Copy link
Collaborator Author

mmosca commented May 5, 2024

@RomanLut any chance you can fix the generic gps model for 7.1.1? I see you have a PR to add specific models for many of the common gps units in 8.0. :)

@RomanLut
Copy link
Contributor

RomanLut commented May 5, 2024

No, Y axis should not point to the same direction as arrow.
This is magnetometer axes.
You can examine magnethometer chip mounting on gps module ( Matek m10q) and qmc5883 datasheet:
image

Should I prepare PR for 7.1 .1 branch with #2056 and #2025 ?

@mmosca
Copy link
Collaborator Author

mmosca commented May 5, 2024

For some reasno I pasted 2 of the same images. But the axis represent the result of the gps model with the arrow pointing to the same orientation. Isn't the X axis of the Magnetometer the North direction, according to the sensor?

That is the source of my confusion.

@mmosca
Copy link
Collaborator Author

mmosca commented May 5, 2024

I updated the model on the original entry.

The arrow should point to the reference North direction (X or the magnetometer) axis on the gps model.

@RomanLut
Copy link
Contributor

RomanLut commented May 5, 2024

No it should not. The only meaning of an arrow on Matek magnetometer is "If you mount magnetometer with arrow pointing to the front, then set CW270flip preset".

Axes represent magnetometer local frame. Actually Matek-m8q has axis markings:

image

@RomanLut
Copy link
Contributor

RomanLut commented May 6, 2024

Ok, the confusion seems to be the assumption that arrow on Magnetometer model points to the North. Actually Magnethometer model in the tool represents Matek magnetometers (M8Q, M9N, M10Q) as most widely used models. Arrow on Matek magnetometers points to the negative Y axis (East).
#2056 should resolve it.

@mmosca
Copy link
Collaborator Author

mmosca commented May 6, 2024

No it should not. The only meaning of an arrow on Matek magnetometer is "If you mount magnetometer with arrow pointing to the front, then set CW270flip preset".

I guess this is the issue. This makes no sense (other than historical reasons). There is also plenty of gps units with no arrows, or different axis orientations, as you probably found out when modeling a bunch of them.

The 270 in CW270flip is the offset of the X axis from the axis tat points to the front of the quad.

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