How to adjust DMP interrupt rate with emd v5.1

By pranavab , 2 February 2013

I am working with the eMPL from the Motion Driver v5.1 on a 6150. I have it mostly working but the interrupt is firing at the internal sampling rate instead of my conifgured fifo rate.

The init sequence I am using:

mpu_init()
mpu_set_sensors(INV_XYZ_GYRO|INV_XYZ_ACCEL);
mpu_configure_fifo(INV_XYZ_GYRO|INV_XYZ_ACCEL);
dmp_load_motion_driver_firmware();
dmp_set_orientation(inv_orientation_matrix_to_scalar(gyro_orientation));
dmp_register_tap_cb(tap_cb);
dmp_register_android_orient_cb(android_orient_cb);
dmp_set_fifo_rate(2);
dmp_enable_feature(DMP_FEATURE_6X_LP_QUAT|DMP_FEATURE_GYRO_CAL);
mpu_set_dmp_state(1);

I can see the interrupt from the MPU coming at 200Hz, but the fifo only has data at the specified rate of 2 Hz.

How can I disable the DMP interrupts and only receive interrupts when there is data in the fifo?

phpbb Topic ID
15024