Align the IMU of the device to obtain the correct measurements, as shown below:
Place the device into the vehicle so that the IMU chip inside is aligned with the axis,
In case of misalignment, align the 'Z' axis first, followed by 'Y' and then 'X'. The chart below explains the attributes of all three axes in detail:
Axis
Angle
Movement Orientation
Pointing Direction
Default
Z
0°, 360°
Distance (or depth) from the observer
Vertical
0
Y
-90°, 90°
Vertical movement
Lateral
0
X
-180°, 180°
Horizontal movement
Longitudinal
0
To Calculate the exact angle in case of misalignment:
Keep the axis's actual position in mind- measure the angle of misalignment.
Subtract the current measured angle from the actual angle value.
For example, if the vehicle's attitude is misaligned at its roll, the axes Z and Y are misaligned.
Configure/edit in Xml
Similarly, if the vehicle's attitude is misaligned at its yaw, the axes X and Y are misaligned.
Similarly, if the vehicle's attitude is misaligned at its pitch, the axes Z and X are misaligned.