stm32duino / LSM6DSOX

Arduino library to support the LSM6DSOX 3D accelerometer and 3D gyroscope
27 stars 16 forks source link

Is there a way to get a time stamp for each measurement in the FIFO buffer? #21

Closed LazaroFilm closed 1 year ago

LazaroFilm commented 1 year ago

I need to know the exact interval between each gyro measurement and check that no values were binned. So I'm thinking of using a FIFO polling, but I would love to know if there's a way to know the exact time between each measurement, independently from my sketch's loop frequency.

cparata commented 1 year ago

Hello @LazaroFilm , you can tune ODR and BDR values. If they are equal, you should not find binned values and the timestamp between two consecutive values can be calculated as 1/ODR. Best Regards, Carlo