Order of sensor data in FIFO

By c14edgehd , 12 March 2014

Hi,

I have a simple setup with a HMC5883L compass connected to the aux i2c bus of MPU6050. I've successfully configured the compas as a slave device and I've also configured raw gyro, accel, and compas readings to be placed into FIFO. So far so good, the data in FIFO seems to be ok, and the order of the values is as documented in the register map pdf - no surprises here.

But, now I'm trying to activate the DMP to obtain quternions, besides the raw values mentioned earlier (especially external compass). But don't know what to expect regarding the order of data placed in the FIFO. Will my initial FIFO setup be reset by the activation of DMP? Or maybe the DMP will place its output in the FIFO mingled with the raw values configured previously?

The second one seems highly error prone, so I suspect it will be the first case. And the consequnce of that would be that the compass data (and the other raw values) will no longer be placed in the fifo.

I know that the raw gyro and accel can be obtained from dmp by activating DMP_FEATURE_SEND_RAW_GYRO and DMP_FEATURE_SEND_RAW_ACCEL, but what can be done for the aux sensor? Reading it directy is not a good option for me. I need it in the fifo.

Thanks

phpbb Topic ID
15999