kriswiner / MPU6050

Basic MPU6050 Arduino sketch of sensor function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doing fusion oupdates with no new data

manitou48 opened this issue · comments

Kris, I was hoping you would respond to this teensy forum

https://forum.pjrc.com/threads/33328-Prop-Shield-Beta-Test?p=101499&viewfull=1#post101499

Your prop-shield sketch does fusion updates even if there is no new data, and you argue in your MPU-6050 discussion for using a faster MCU to do additional filter updates. Paul thinks otherwise, and I'm curious...

I left a detailed response; I don't know if Paul is referring specifically to the Madgwick filter. If so, I think he is mistaken...

Hello Cris

Thanks for all the info you share! There are several threads discussing the topic of multiple iteration of Madgwick filter but still need clarification on one point.
You are saying that a rule of thumb is to use Madgwick iteration frequency as about 5 times of IMU sampling rate. So if IMU sampling rate is 200Hz need to run Madgwick at 1kHz. But what should be sampling frequency parameter at Madgwick at this case?
For example, I use Data ready interrupt at 6050 and get data from 6050 every 5ms (Sample_Freq = 200Hz). After I read all data from 6050 I am ready to run Madgwick. But if I want to do lets say N iterations do I need to use the same "fresh" portion of data and (Sample_Freq * N) at "Integrate rate of change of quaternion to yield quaternion" or?

Thanks in advance!

Thanks a lot! Now is clear. Intuitively such iterations using the same input data feels weird but math is a fun thing, would be interesting to model that and see if the result is really approaching asymptoticaly some specific value.