Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow aligning the mag to any rotation #2833

Merged
merged 2 commits into from
Mar 23, 2018

Commits on Mar 15, 2018

  1. Allow aligning the mag to any rotation

    Introduce 3 new variables which allow setting the decidegrees
    for the mag sensor alignment. When any of these 3 variables
    are non-zero, mag is assumed to be mounted off-board and
    "align_mag" as well as the board alignment are ignored.
    
    Settings are named align_mag_roll, align_mag_pitch and
    align_mag_yaw.
    
    Fixes #86
    Fixes #1029
    fiam committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    948f2ae View commit details
    Browse the repository at this point in the history
  2. Precalculate external mag rotation matrix

    Introduce rotateByMatrix(), which rotates a vector by the given
    matrix. Initialize the matrix on mag initialization, so it's not
    recalculated on every mag reading.
    fiam committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    fb08194 View commit details
    Browse the repository at this point in the history