指南针校准 [英] compass calibration

查看:118
本文介绍了指南针校准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我一直在构建利用电磁罗盘和手机方向等特性的AR引擎.在此过程中,我构建了一个免费的愚蠢的AR Compass,在测试中,我意识到90%的时间都可以正常工作!但是偶尔磁罗盘传感器会停止响应..我发现的每个文档都在谈论用户使用其设备重新校准指南针来制作数字8的方法.这有时会奏效,但并非总是如此..有一种方法可以通过编程方式重置指南针?在连结点的冰激凌沙上进行测试!

So i have been building an AR engine that makes use of the magnetic compass and phone orientation ect.. In the process i built a free stupid AR Compass and in testing i realize that 90% of the time it works GREAT! but occassionally the magnetic compass sensor stops responding.. every doc i have found talks about the user makeing a figure 8 with their device to recalibrate the compass.. and this works SOMETIMES but not always.. is there a way to reset the compass programmatically? testing on ice cream sandwhich nexus prime!

eliddell

推荐答案

由于校准的工作方式,无法以编程方式重置指南针.

The compass cannot be reset programmatically because of the way calibration works.

指南针的工作原理是检测其周围磁场的细微变化.当您以8位图形的形式挥动它时,更改过快且太大,这将重置它.这将导致它重新校准.但是,在某些情况下,重新校准将无济于事.通常,这些情况是当您站在高压电源线旁边,一块金属旁边或在车厢内部有很多静电(尤其是仪表板旁边的区域)的情况下,

The compass works by detecting small changes in the magnetic field around it. When you wave it in a figure of 8 pattern, the changes are to fast and too much, which resets it. This causes it to recalibrate. However, there are some cases in which recalibration will not help. These are usually when you are standing next to high voltage power lines, or next to a piece of metal, or are inside a car that has a lot of static in it (especially the area next to the dashboard),

这篇关于指南针校准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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