Math Behind Quaternion to Gravity Conversion


hi everyone,

i using mpu6050 calculate y gravity vector quaternions. equation used in i2cdev library

gravity.y = 2 * (q.w * q.x + q.y * q.z);

where q.w scalar component , rest vector quaternions.

i wanted know how math here gives gravity vector , if there other way compute y gravity vector using least possible number of quaternion components.

regards.

sorry, meaningless out of context, can show entire operation, or point source code?


Arduino Forum > Using Arduino > Sensors > Math Behind Quaternion to Gravity Conversion


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor