检测加速度计检测到的运动的时间范围
如何检测设备检测到加速度计上的运动的时间量?
如果我想检测设备上的连续运动检测,例如 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如所评论的,加速度计提供加速度值而不是速度 - 因此您必须对传入值进行积分。请注意:
- 地球引力始终存在
- 有很多噪音(手机内置的加速计芯片非常便宜、蹩脚且
售价 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)