如何与iPhone建立指南针? [英] How to build a compass with the iPhone?
问题描述
在谷歌搜索之后,我问自己:
是否可以用iPhone
构建一个指南针(简单显示标题/方向) 3G的GPS传感器?
我怀疑,这是唯一可能的,如果设备在移动。
任何想法都会受到赞赏。
是的,您是对的,这是唯一的方法。尽管我认为一旦知道了方向,即使原始动作停止,也可以跟踪加速度传感器发出的小动作,并准确地确定方向。
注意:这是过时的信息,这是正确的,直到3Gs出来。不幸的是,我无法删除接受的答案,所以请看下面。
After some searching on Google, I ask myself:
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.
Any ideas are appreciated.
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.
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屋!