After reading out three individual g values from x, y and z axis of sensor, what is the maths formula to calculate the 'resultant' vector (direction and magnitude)? How is the maths notation of 'direction' vector? For aeroplane, traditionally it will be three values, pitch, yaw and roll? Is there a 'single value' for the vector's direction (or may be something called euler angle)? How to calculate the difference between 'TWO VECTORS'? For example, if the sesnor is placed flat on table, x and y axis is zero. Z is 9.81 ms-2 (g value). Call this VECTOR_0 as base reference. If I rotate the sesnor and the x,y,z resultant is VECTOR_1. How to calculate the difference between VECTOR_0 (base reference) and VECTOR_1 (new value)? Any standard c language library to do the maths? Many thanks
... View more