Sensor period modification not working with ICM20948

By fbirot , 4 October 2017

Hello,

I'm using libIDD 3.8.9 to communicate with an ICM20948 via SPI and get 9 axis fused orientation.

Everything works pretty well so far, except that I don't manage to modify the output frequency. It is always 56Hz ..

If I do the following, to set the frequency to 20Hz (period of 50 000 us), the function returns 0 which is good, but the output rate is not changed:

inv_device_set_sensor_period_us(device, INV_SENSOR_TYPE_ROTATION_VECTOR, 50000);

I've tried calling this function both before and after calling inv_device_start_sensor(device, INV_SENSOR_TYPE_ROTATION_VECTOR) but it doesn't change anything.

Is someone experiencing this ? Am I doing something wrong ?

Thank you

phpbb Topic ID
36520