Skip to content

used this with MPU9250, modified accordingly and works but issue with heading #17

Description

@bbelmar

Hello there, first of all thank you so much for this amazing work! you are a life saver.

I used this and modified to get the readings from MPU9250. Accel works as expected, I was expecting the gyro to read similar magnitudes as the accel but the magnitudes are way smaller, even if I tilt the sensor -90Deg in the Y axis , the gyro measures only approx -6., but the accel measures approx -90. I thought the code was turning gyro information in Degrees? The accel in X goes crazy but i dont know if that is an expected reading.

Accel in X= 146.01047352241366
Accel in Y= -94.48802755114491 ##this is when i rotated the sensor to the left 90 deg approx
GyroX = 0.0958970146179199
GyroY = -6.615839959945679 ## shouldn't this be same reading as accel in Y?
GyroZ = 0.010706434631347735
Heading = 0.4136347527893839
Compensated Heading = -496.89575038831293

And lastly, as you can see the heading is not responding well...
If i rotate the sensor 180 deg, it goes from approx 25-> 0 -> 40 as i rotate...

I know im asking a lot, but if you have the time to reply would be amazing. Thank you so much!

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