gpt4 book ai didi

android - Android应用程序开发中如何使用加速度计测量距离

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:17:52 25 4
gpt4 key购买 nike

我只是应用程序开发行业的初学者。我知道加速度计可用于返回沿三个轴的当前加速度,单位为米每秒平方 (m/s2)。但我已经知道加速度计也可以用作速度计。

我想知道如何使用加速计来确定 Android 设备在兴趣点之间移动的距离。如果可能的话,我该如何实现呢?我见过类似的问题“如何使用加速度计测量 Iphone 移动的距离”How do I measure the distance traveled by an iPhone using the accelerometer? .但我没有得出结论。

谢谢你,阿尔斯兰

最佳答案

您可以通过对线性加速度进行两次积分来获得位置,但是误差非常大。在实践中是没有用的。

这里是 an explanation why (Google Tech Talk)在 23:20。我强烈推荐这个视频。

类似问题:

track small movements of iphone with no GPS
What is the real world accuracy of phone accelerometers when used for positioning?
how to calculate phone's movement in the vertical direction from rest?
iOS: Movement Precision in 3D Space

关于android - Android应用程序开发中如何使用加速度计测量距离,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6352681/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com