onewalnut / SensorDataCollector

An Android application for sensor data collection (geomagnetism and IMU)
2 stars 2 forks source link

About Sampling rate #1

Open xtgg4310 opened 2 years ago

xtgg4310 commented 2 years ago

Hello, i try to fork your project and build it on my HUAWEI P30 Pro. I know the maxium sampling frequency of my device is 500Hz. However, even the samplingperiodUs is set as SENSOR_DELAY_FASTEST, the sampling rate is still 100Hz. I am a freshman in Android developer, i want to know how to deal with it.

Thanks a lot.

lixinghe1999 commented 9 months ago

For other people we encounter similar problem, please just turn off other sensors except accelerometer so the max sample rate will not be constrained by the slower sensor.