您的 Android 指南针硬件在驾驶或乘坐火车时可以工作吗?
我有一个 Desire Z,当快速移动时,罗盘硬件开始返回完全错误的值。它可能是硬件在快速移动时无法正确测量,但我想知道是否所有设备都有这个问题。
您可以通过安装任何指南针应用程序在自己的手机上尝试(不要使用 Google 地图,因为它们在移动时会自动切换到 GPS 指南针模式)。 我需要知道这一点,因为对于增强现实应用程序来说,了解用户在火车/汽车中时正在看哪里仍然相关。
I have a Desire Z and when moving to fast the compass hardware starts to return totally wrong values. Its probably the hardware which can't measure correctly when moving to fast but i want to know if all devices have this problem.
You can try it with your own phone by installing any compass app (don't use Google Maps cause they switch automatically to GPS-compass-mode when moving).
I need to know this because for Augmented Reality applications its still relevant to know where the user is looking when being in a train/car.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我什至不希望传统的磁罗盘能够在汽车的钢笼中正常工作。在通过第三根轨道获取电力的火车上,我看到表盘在加速时会翻转 180 度以获取电流。
I wouldn't even expect a conventional magnetic compass to work correctly in the steel cage that is a car. On an train that draws electric power through the third rail, I've seen the dial flip through 180 degrees as it draws current on acceleration.
指南针在汽车上通常工作良好;有几家制造商生产它们,他们只需要避开发动机舱、车窗电机和后窗除霜器即可。
另一方面,火车……作为普通的地铁(电动)和城际火车(柴油)乘客,指南针几乎毫无用处。根据我在汽车中使用 JCI(汽车供应商)的模块进行的一些测试,在铁路道口行驶时,指南针会陷入混乱。从指南针读取数据的控制模块有一个内置的毛刺过滤器,可以丢弃这种方向上的根本变化(这在某种程度上是可申请专利)。
Compasses generally work fine in cars; several manufacturers make them and they just need to avoid the engine bay, window motors, and rear-window defrosters.
Trains on the other hand...as a usual metro (electric) and intercity train (diesel) rider, compasses are near-as-makes-no-difference useless. From some testing I did with a module from JCI (automotive supplier) in a car, driving over railroad crossings throws a compass into disarray. The control module that read from the compass had an in-built glitch filter to discard such radical changes in orientation (which somehow is patentable).