[英]Is it possible to combine an Accelerometer and Digital Compass to get a fine Gyroscope?
I want to make an app that need to use Gyroscope Sensor 我想制作一个需要使用陀螺仪传感器的应用程序
However, due to cheap android phone didn't provide this sensor but it still have accelerometer and digital-compass in itself. 但是,由于廉价的android手机未提供此传感器,但其本身仍具有加速度计和数字罗盘。
As far as I know.. Since, accelerometer can detect 3 axis of our phone. 据我所知..以来,加速度计可以检测到我们手机的3轴。 When compare to Gyroscope, only the thing they lack is they can't detect if user rotate their phone without changing their pose.
与陀螺仪相比,他们所缺少的只是无法检测到用户是否在不改变姿势的情况下旋转手机。 That's why I need to use digital compass to get the north direction to solve this problem.
这就是为什么我需要使用数字罗盘来解决这个问题。
So, I would like to know is it possible to just use only these 2 sensors to make a gyroscope sensor work-like? 因此,我想知道是否可以仅使用这两个传感器使陀螺仪传感器工作? Anyone ever try?
有人尝试过吗? Is it actually work?
它真的有效吗?
Thanks 谢谢
It is not clear why your app needs gyroscopes. 目前尚不清楚您的应用为何需要陀螺仪。 I assume that you want to track the orientation of the phone.
我假设您想跟踪手机的方向。
You can track the phone orientation reasonably well with the accelerometer, compass and a low-pass filter. 您可以使用加速度计,指南针和低通滤波器很好地跟踪手机的方向。 It lags a bit but it works, I have impleneted that for the Shimmer platform.
它有点滞后,但是可以工作,我已经在Shimmer平台上实现了。 See also my answer here with the link to a demonstration video.
另请参阅我的答案以及演示视频的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.