Android accelerometer: Sampling Rate? -


i want

[1] increase sampling rate of phone's accelerometer. (sensor_delay_fastest gives max. about 100hz on xperia/ 180hz on nexus4, want delay 1ms or less work.

[2] if [1] not possible can make rate constant.

msensormanager.registerlistener(this, maccelerometer,10000);//10000 in microsec 

above code doesn't give me 10ms delay. know it's suggestion android.

i know these accelerometers inside phones capable of giving smaller delay. it's mentioned in datasheets. method or driver/adc programming [1] or [2]. i'm using adt tools. other tool this?

p.s: i've read

android: how increase accelerometer sampling rate?

impossibility change rate of accelerometer

from developer.android.com :

the data delay (or sampling rate) controls interval @ sensor events sent application via onsensorchanged() callback method. default data delay suitable monitoring typical screen orientation changes , uses delay of 200,000 microseconds. can specify other data delays, such sensor_delay_game (20,000 microsecond delay), sensor_delay_ui (60,000 microsecond delay), or sensor_delay_fastest (0 microsecond delay). as of android 3.0 (api level 11) can specify delay absolute value (in microseconds).

but should know absolute value specify in microseconds suggestion android.


Comments