Closed C-EkoEko closed 1 year ago
Has there been any update on this? I too am facing this issue. A delay upto 8 ms or so doesn't drastically affect the readings but if you go above it then the output drops to 0.
Unfortunately, I couldn't solve it. The only possible explanation I could reach from previous issues is that it may not be an original chip.
Fairly certain I have the original variant since I bought it from a legit store. Does your calibration function properly? That is set the initial values of the getPitch and whatnot to 0? Mine has an offset of 9 degrees for some odd reason after calibration 🥲
Sorry, I don't remember and don't have the sensor with me anymore. However, as far as I can remember, the sample outputs I provided above were right after calibration.
I have this same problem. The rest of my program runs for more than 40ms which means I can't get any readings. When I comment out the rest of my program and have a delay less than 5ms it works fine.
Did you try mills function?
You should call mpu.update()
frequently to estimate a pose. Too long delay()
causes incorrect estimation
Environment
IDE (Arduino IDE, PlatformIO, etc.) : Arduino IDE Board/MCU (Arduino Uno, ESP32, etc.): Arduino UNO, Teensy 3.6 Board Firmware Version (see board manager): MPU-9250 Library Version: 0.4.8
Problem Summary
When I add delay quaternions do not show accurate data.
Problem Details
Hello, I am trying to read a few values from MPU9250 however when I add a delay I cant get yaw, pitch and roll values. So I checked the quaternions and saw they dont get updated when I use no filter they get updated but values are not accurate. When I use MADGWICK they do not get updated. And when I use MAHONY they get updated but not accurate again. I also tested with a Teensy 3.6 but results are same.
Thank you in advance.
Reproducible & Minimal & Compilable Code
This is the code I used. The only different thing is filter type between outputs.
Output (NONE):
Output (MADGWICK):
Output (MAHONY):