如何用 iPhone 制作指南针? [英] How to build a compass with the iPhone?
问题描述
在谷歌上搜索后,我问自己:
After some searching on Google, I ask myself:
是否可以用iPhone 3G 的 GPS 传感器?
Is it possible to build a compass (simple showing the heading/direction) with the iPhone 3G's GPS sensor?
我怀疑这只有在设备移动时才有可能.
I have the suspicion, that this is only possible, if the device is moving.
感谢任何想法.
推荐答案
是的,你是对的,这是唯一的方法.虽然我认为一旦你知道了方向,你就可以通过加速度传感器跟踪手机的微小动作,并准确地绘制出方向,即使原来的动作停止了.
Yes, you are right, that's the only way. Although I think once you know the direction, you could track small movements of the phone from acceleration sensors and draw the direction accurately even if the original movement stops.
注意:这是过时的信息,在 3G 出来之前是正确的.不幸的是,我无法删除已接受的答案,所以请看下面.
Note: This is outdated info, it was correct up until 3Gs came out. Unfortunately I can't delete accepted answer so just look below.
这篇关于如何用 iPhone 制作指南针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!