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

Why do Euler's angles and y-axis have a negative sign? #3

Open
LuisOrtizF opened this issue Mar 18, 2020 · 0 comments
Open

Why do Euler's angles and y-axis have a negative sign? #3

LuisOrtizF opened this issue Mar 18, 2020 · 0 comments

Comments

@LuisOrtizF
Copy link

Could someone explain to me why the IMU measurements on the y-axis are sent with a gegative sign to the Madgwick filter. And why for the visualization the Euler angles are sent are also a negative sign?

imu.updateMadgwickQuaternion(gx * PI / 180.0f , -gy * PI / 180.0f , gz * PI / 180.0f , ax, -ay, az, -mx, -my, mz);

    Serial.print("Orientation: ");
    Serial.print(-heading);
    Serial.print(" ");
    Serial.print(-pitch);
    Serial.print(" ");
    Serial.println(-roll);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant