检测加速度计检测到的运动的时间范围

发布于 2024-12-07 09:20:40 字数 105 浏览 0 评论 0原文

如何检测设备检测到加速度计上的运动的时间量?

如果我想检测设备上的连续运动检测,例如 10 秒的运动。这是怎么做到的?当我使用加速度计委托方法时,它不断被调用并且很难处理时间计算。

How does one detect the amount of time the device has detected motion on the accelerometer?

If I wanted to detect continuous motion detection on the device such as 10 seconds of motion. How is this done? When I use the accelerometer delegate method, it keeps being called and is difficult to handle the time calculation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尛丟丟 2024-12-14 09:20:40

正如所评论的,加速度计提供加速度值而不是速度 - 因此您必须对传入值进行积分。请注意:
- 地球引力始终存在
- 有很多噪音(手机内置的加速计芯片非常便宜、蹩脚且
售价 10 美元一桶)

As commented, accelerometer delivers acceleration values and not speed - so you will have to integrate over incoming values. Bu bevare of:
- earth gravity is always there
- there is a lot of noise (accelerometer chips built in phones are really cheap, crappy and
sell for 10$ a bucket)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文