What is android accelerometer min and max range

坚强是说给别人听的谎言 提交于 2019-12-08 19:42:20

问题


Hi i would like to know the minimum and maximum range of accelerometer in android.

i need it for x,y,z.

do any one have exact values of it?


回答1:


There is no "exact values" in general -- it will vary by device. The Sensor class has getMaximumRange(). Since acceleration can be positive or negative, I would assume you can safely multiply that value by -1 to get the minimum value.




回答2:


It measures a physical magnitude! I don't really know if there is some practical limit introduced by the hardware-device, but I don't think you're gonna be that fast... Since its a vectorial magnitude, the sign means the sense of your movement.

PD: I'm assuming you mean Sensor.TYPE_ACCELEROMETER events values.



来源:https://stackoverflow.com/questions/4691097/what-is-android-accelerometer-min-and-max-range

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!