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

about HalfMagnetic vector calculation #194

Open
Huangxianfeng001 opened this issue Oct 31, 2024 · 1 comment
Open

about HalfMagnetic vector calculation #194

Huangxianfeng001 opened this issue Oct 31, 2024 · 1 comment

Comments

@Huangxianfeng001
Copy link

Huangxianfeng001 commented Oct 31, 2024

the calculation of in the equation of HalfMagnetic in your code seems different from the equation of Mahony algorithm.
In the function of HalfMagnetic, seems you directly transform the vector [0, 1, 0] from Global Coordinate system to the Body Coordinate system. hope you can explain it.

@xioTechnologies
Copy link
Owner

xioTechnologies commented Nov 11, 2024

HalfMagnetic returns the direction of the magnetic field scaled by 0.5. This is the direction of the magnetic field according to the AHRS algorithm's current measurement of orientation. The scaling by 0.5 is just to avoid redundant operations.

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