xioTechnologies / Oscillatory-Motion-Tracking-With-x-IMU

414 stars 170 forks source link

Determine earth coordinates relative to IMU #2

Open marcobarnobi opened 8 years ago

marcobarnobi commented 8 years ago

Hi, I am having some troubles using the code. It works perfectly with the dataset provided, but when I use the samples obtained from my own IMU the output does not make sense . I think that this is due to the initial condition 'Quaternion=1 0 0 0', that represents the Earth relative to the sensor. Probably I should set my own 'Quaternion' as an argument of the MahonyAHRS function.
If this is right, how do I find this quaternion?

Please let me know. :)