如何与iPhone建立指南针? [英] How to build a compass with the iPhone?

查看:154
本文介绍了如何与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆