When enabling the horizon lock, in the code, Euler angles are calculated and then recombined to obtain a quaternion. However, when the pitch is close to 90°, gimbal lock occurs, causing the recombined quaternion to represent an incorrect attitude.
[https://github.com/gyroflow/gyroflow/blob/master/src/core/smoothing/horizon.rs]
