kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 472 forks source link

quaternion convention #364

Open shomedas opened 5 years ago

shomedas commented 5 years ago

Hi Kris, What does quaternion q denote in your code? Is it the board frames orientation w.r.t. earth frame or vice versa. One of your comments in the code says it to be

quaternion-based estimate of absolute device orientation which means its the boards orientation wrt earth.

In madgwicks paper, it is earths frame wrt board.

I need to know it as I am need to use the same convention in rest of my own code.

kriswiner commented 5 years ago

These mean the same thing. The quaternions specify the absolute orientation of the board with respect to the Earth's frame. True North == q(1, 0, 0, 0).

On Thu, May 9, 2019 at 12:34 PM shomedas notifications@github.com wrote:

Hi Kris, What does quaternion q denote in your code? Is it the board frames orientation w.r.t. earth frame or vice versa. One of your comments in the code says it to be

quaternion-based estimate of absolute device orientation which means its the boards orientation wrt earth.

In madgwicks paper, it is earths frame wrt board.

I need to know it as I am need to use the same convention in rest of my own code.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/364, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKQK7MWV7DIDVYBFABLPUR4E5ANCNFSM4HL5MD6A .