I'm trying to understand the FIFO buffer... Or maybe I'm looking in the wrong place.
The data is fine but the speed of the mpu is not (I think).
I run a sketch on a DUE which takes 300 millis to loop.
I read the x, y angles just fine if I rotate it slowly.
If I turn it fast (less than a loop time) I expect it skip some angles but it does not... it will got from 0 deg to 90 going thru almost all angles in between taking many loops to get to 90. (it will skip some but not all)
I would like it to jump to where it is in time. If I turn if from 0 to 45 in less than the loop time, the next one from 0 should be 45?
Does the MPU buffer a range of data and then sends it? How can I fix this?
Any help would be appreciated.
Cheers
Marc
UPDATE!
After many hours of reading I found that I need to lower that sample rate down to about 4hz (4times/sec)
This is done by using an external clock speed of 19.2mhz and changing the SMPLRT_DIV (sample rate division)
I have yet to try to do that.
I have a few things to find out before:
1- Does the I2C frequency acts as the external clock?
2- Would this affect anything else running on my board?
3- Can this be done in the sketch?
4- Can I change the SMPLRT_DIV in the sketch or do I have to change it in the .h/.cpp file.?
If anyone can help me with those 4 points I think I'm good to go.