How to get only horizontal acceleration in accelerometer

淺唱寂寞╮ 提交于 2020-01-25 08:36:05

问题


Is it possible to get acceleration only in horizontal direction irrespective of the placement of the device.

I want to calculate acceleration of moving vehicle using android device. There may be cases where device is placed in any orientation. Is there any way by which i can calculate the acceleration of vehicle using accelerometer without calibrating each time?

来源:https://stackoverflow.com/questions/58959443/how-to-get-only-horizontal-acceleration-in-accelerometer

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