Angle between two MPU 6050's

Hi,

I'm looking to obtain the angle between two Mpu 6050's. It is typically called "a hinge joint".

I already have the angle for each IMU (based on accelerometer and gyroscope data)
But I don't know exacty how to do it... Is Do you have any idea about the way that I will have to proceed ?
hinge

Thank you !

The angle between two vectors can be derived from their dot product.

Or cross product. The cross product is more accurate for very small angles, but less accurate near 90 degrees.

Or you can work from the raw quaternions and calculate the difference: http://www.boris-belousov.net/2016/12/01/quat-dist/

Hopefully you have an orientation or at least a 3D vector, not just an angle, a 2D angle is insufficient here.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.