According to the Android OS documentation, accelerometer sensors
should return values of acceleration in m/s^2.

The documentation is a little ambiguous in many regards. First off, it
seems to imply that when at rest, lying on a flat surface, the only
axis the accelerometer should measure any acceleration on is the Z-
axis (downwards due to gravity).

"When the device lies flat on a table and is pushed on its left side
toward the right, the x acceleration value is positive." --This is the
line that seems to imply this.

However, while working on a program using the accelerometer on the
Motorola Droid, I seem to be getting different results than expected.
It acts much like it is giving me orientation readings, despite the
fact that Sensor.getName() returns accelerometer. Altering the
orientation of the phone changes the values, but they stabilize for
any given orientation. The values for the X, Y, and Z axises are _all_
non-zero, even when stationary.

I am using SensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)
to get the accelerometer.

Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to