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

Question for calculating Mag(N), Mag(E) #1

Open
wkyoun opened this issue Jul 26, 2018 · 1 comment
Open

Question for calculating Mag(N), Mag(E) #1

wkyoun opened this issue Jul 26, 2018 · 1 comment

Comments

@wkyoun
Copy link

wkyoun commented Jul 26, 2018

@zarathustr

Dear Jin Wu
Thank you for sharing the great contribution to FKF.

However, I have a simple question as following.

Would you please explain why mD and mN is calculated as following?

    mD=dot(Accelerometer(i,:),Magnetometer(i,:));
    mN=sqrt(1-mD^2);

https://github.com/zarathustr/FKF/blob/master/main_performance.m#L62-L63

As far as I understand,

magnetic field vector B*(cos (alpha), 0, sin(alpha) where B is the strength of the magnetic field and alpha is the inclination angle

Dos this dot(Accelerometer(i,:),Magnetometer(i,:)); operation means inclination angle?

@KangliC
Copy link

KangliC commented Nov 25, 2019

Because the data in accelerometer and magnetometer has been normalized before this step. The result of dot between them will come up with mD for the normalized magnetic value. It only has the mathematical meaning.

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