Skip to content

Gimbal lock occurs when pitch close to 90° #1059

@NiYien

Description

@NiYien

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]

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions