android accelerometer accuracy is extremely poor

Posted by user564594 on Stack Overflow See other posts from Stack Overflow or by user564594
Published on 2011-01-05T21:19:22Z Indexed on 2011/01/05 21:53 UTC
Read the original article Hit count: 207

Filed under:
|
|

Wrote a simple program that prints out accelerometer output.

mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); mSensorManager.registerListener(this,mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_FASTEST);

It turns out that:

  1. The accelerometer output is always set to "lowest" as determined by:

public void onAccuracyChanged(Sensor sensor, int accuracy) { if (collectingData){
accelPrecision.setText("accelerometer accuracy: " + accuracy); } }

  1. The actual accelerometer readings are very inaccurate - about 2%-5% fluctuations even when it's resting on the table

as far as I can tell it's the same problem on Nexus S, Nexus One and G1

Any idea how it could be made mode accurate / what sets a

© Stack Overflow or respective owner

Related posts about android

Related posts about sensor