LPF - difference between datasheet and Driver codebase

By panco42 , 11 September 2014

In the MPU-9250 Register Map, on pages 13 and 15, t shows the following options for the LPF (low-pass filter):
5, 10, 20, 41, 92, 184 Hz.

In the inv_mpu.c file (from Motion Driver 6: core/driver/eMPL/), the options are:
5, 10, 20, 42, 98, 188 Hz.

Which is correct?

It matters because the mpu_set_lpf() function rounds the values. For example, calling mpu_set_lpf(98) makes the software assert INV_FILTER_98HZ, whereas calling mpu_set_lpf(92) asserts INV_FILTER_42HZ.

Thanks!

phpbb Topic ID
16605