Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compass Alignment with Roll and Pitch Axes (DMP) #145

@Gord1

Description

@Gord1

Subject of the issue

I'm finding that the Compass (yaw) is 90 deg off from what I'm expecting with respect to the roll and pitch directions.

I'm using SparkFun Example11_DMP_Bias_Save_Restore_ESP32 that I have modified slightly for the ESP8266. This example takes the quaternion data and calculates roll, pitch and yaw. The angles are all good, except for the zero reference for the yaw angle. That seems to be rotated 90 deg.

If I set the board flat with 0 yaw, the "nose" of the board will point north. If I lift the nose up I would expect the pitch angle to change, but the roll changes.

issue #114 @texasfunambule may have made a comment about this > The quat9 example seems to work fine (except maybe for compass alignement)

Could the quaternion components be mixed in the roll, pitch, yaw equations?? That is beyond my pay grade.

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