Git Product home page Git Product logo

Comments (11)

lixuwork avatar lixuwork commented on July 22, 2024

I am working on this now.
I get a problem that the data of any axis being perpendicular to the ground keep rotating. Have ever encountered this problem?

from madgwickahrs.

tshaddix avatar tshaddix commented on July 22, 2024

Hi, @lixuwork. Sounds very similar to my issue.

from madgwickahrs.

PaulStoffregen avatar PaulStoffregen commented on July 22, 2024

Gimbal Lock?

from madgwickahrs.

tshaddix avatar tshaddix commented on July 22, 2024

Hi @PaulStoffregen, I appreciate the help.

I just re-read over gimbal lock to make sure I'm familiar with the general concepts. Would this problem continue to persist over different trials and tests?

I've plotted out the raw data from each of the sensors and they all seem to be working as expected in terms of scale and orientation. Rotating/accelerating about each axis produces expected results from the sensor data.

from madgwickahrs.

PaulStoffregen avatar PaulStoffregen commented on July 22, 2024

Sadly, I can't look at this right now. Crazy busy with another urgent (and very late) project.

But at first glance, it sounds like gimbal lock, so maybe just a pointer to that well-known limitation of roll-pitch-yaw will help? That's all I can do at this moment.

from madgwickahrs.

tshaddix avatar tshaddix commented on July 22, 2024

@PaulStoffregen I appreciate the time you've spent! I'll dive in a bit more. Thanks!

from madgwickahrs.

Neutree avatar Neutree commented on July 22, 2024

gyro has error ? Is it calibrated? @ @tshaddix

from madgwickahrs.

marooncn avatar marooncn commented on July 22, 2024

Hi, @PaulStoffregen @tshaddix , I just meet the same problem. I use this filter to get the stable quaternion, but the result shows q0 keeps up and q1, q2, and q3 keeps down no matter what value the parameter "delta" is . When I convert the quaternion to euler angles(Raw, pitch, yaw), they keep up just like your data. Do you solve this problem?

from madgwickahrs.

tshaddix avatar tshaddix commented on July 22, 2024

Hi @marooncn . I ended up just going with an IMU that does all of the sensor fusion for you after I had so much trouble getting things to work out myself. Sorry - wish I could be more helpful!

from madgwickahrs.

HelenXR avatar HelenXR commented on July 22, 2024

@tshaddix
Have you solved your problem yet? I think these code is wrong

mx = imu.calcMag(imu.my);
my = -imu.calcMag(imu.mx);
mz = imu.calcMag(imu.mz);

below is correction

mx = -imu.calcMag(imu.mx);
my = -imu.calcMag(imu.my);
mz = imu.calcMag(imu.mz);

from madgwickahrs.

tshaddix avatar tshaddix commented on July 22, 2024

Hi @HelenXR , thanks for following up on this. I never did get this working. Did you try this code on the same IMU type? I remember I had swapped those axises because of a mismatched coordinate system with the IMU (mentioned in the "Potential Problem Areas" section of this issue).

If that is the solution for this IMU, then that's wonderful :)

from madgwickahrs.

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.