hi,
i have 2 3 axis compass, and i want to unify their reading to have a better precision.
theyr reference x and y is rotated 45° on the Z axis, so, looket from top or bottom, the axis should be like a x and a + overlapped (like *)
what kind of formula should i use?i'm thinking to use 2 rotation matrix and find the mid, but maybe you know some algorithm that use quaternion, that is faster, or maybe that has benn alrready written?
bye
In such cases it is better to get a better sensor, instead of combining two.
Assuming you have already very good sensors, tilting one by 45 degrees and averaging the result might not increase the accuracy. The sensors should have the same accuracy all around.
To calculate the average, you can use the sensor-reading as a single vector. The amplitude is not important, but you need the degrees to the x,y and z axis. Simply substract 45 degrees from the second sensor and use the average.