The library uses 1100Hz as a reference for the sample rate divider value
rate = int((1100.0 / rate) - 1)here
The datasheet seems to be ambiguous between 1100Hz
and 1125Hz
But in practice it looks like the actual number is 1125, because when you call set_gyro_sample_rate(rate=125)
you actually get a 140Hz sampling rate.
The library uses 1100Hz as a reference for the sample rate divider value
rate = int((1100.0 / rate) - 1)
here The datasheet seems to be ambiguous between 1100Hz and 1125HzBut in practice it looks like the actual number is 1125, because when you call
set_gyro_sample_rate(rate=125)
you actually get a 140Hz sampling rate.