Giter Club home page Giter Club logo

Comments (36)

tomgraph79 avatar tomgraph79 commented on September 23, 2024

Ups! What happend to the font size?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

Thank you for your reply. That was very quick! : )
When i point the X or Y axis exactly to north, i get +/- 180° for roll, +/- 0° for pitch and around 70° for yaw.
If it's stabil i can work with it, because i can do the offset later in my 3d program.
But why is the yaw not +/- 90 °?

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

another thing i just realized:
When i want to make the pitch a 360° turn, after arround 90° it goes back 89°, 87°, 86°, ... 0° instead of 91°, 92°,93°, ... 360°.

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

ok, after some calibration test, now i got 0° for all angles.
But i still have the Problem with the Pitch rotation. It allways goes back after a 90° turn.
What could cause this problem?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

where can i make these settings or find out?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

I'm using your code "MPU9250_MS5637_AHRS.ino" and up to now i didn't change very mutch. Actually just a couple of snippets to get a Midi Signal out.

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

i tried both: the MahonyQuaternion and MadgwickQuaternion and both together.
In all cases the same result! : (

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

actually this are just 2 options, right. NED and ENU.
I tried both versions of calibration. so one should have been right.

Or do i have to change the code anyway?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

well, in the code is the order x, y, z.
If i point x to north, than has the sensor be down, right.

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

MahonyQuaternionUpdate(ax, ay, az, gxPI/180.0f, gyPI/180.0f, gz*PI/180.0f, mx, my, mz);

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

isn't it?

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

you mean during the calibration?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

but in the code isn't defined which axis needs to pint to north

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

point

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

during calibration, right

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

you mean the order in this line is wrong?
MahonyQuaternionUpdate(ax, ay, az, gxPI/180.0f, gyPI/180.0f, gz*PI/180.0f, mx, my, mz);

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

i just try to understand the code!

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

when i understand you right, then means NED:

MahonyQuaternionUpdate(ax, ay, az, gxPI/180.0f, gyPI/180.0f, gz*PI/180.0f,
mx, my, mz);

when x axis is pointing north with z axis is down.

and ENO:

MahonyQuaternionUpdate(ay, ax, az, gyPI/180.0f, gxPI/180.0f, gz*PI/180.0f,
my, mx, mz);

when y axis is pointing north with z axis is up.

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

of course i don't want to waste your time!
i will find the solution!
Thanks for everything : )

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

you mean the data sheet for mpu9250?

from esp32.

kriswiner avatar kriswiner commented on September 23, 2024

from esp32.

tomgraph79 avatar tomgraph79 commented on September 23, 2024

no, i'm using MPU9250.
Thanks! : ) i will check the data sheet tomorrow.
no i need to go to sleep ; ) it's 4:37

from esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.