Constant sampling frequency Acclerometer android?

I am working on an application where I need to try it at a constant of 30 Hz. Is it possible? I looked at the Android SensorManager, which provides 4 different sampling rates, but none of them give uniform reading.

thanks

+4
source share
1 answer

Why not do it manually. Set a Thread to wake up every 33 ms (30 Hz) and get the Accelerometer reading at that time.

0
source

Source: https://habr.com/ru/post/1401445/


All Articles