I am using the MPU6050 IMU + the HCM5883L magnetometer to obtain yaw, pitch and roll angles. My problem is that when I move in Pitch, the yaw angle change in +- 50 degree approximatelly. However, if I move only in Roll, don't change Yaw. The only error is when move in Pitch.
Can be an error in the axis direction? Or in calibration process maybe?