哪些传感器用于Sensor.TYPE_ROTATION_VECTOR [英] Which sensors used for Sensor.TYPE_ROTATION_VECTOR

查看:1701
本文介绍了哪些传感器用于Sensor.TYPE_ROTATION_VECTOR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的蜂窝姜饼,我想知道,这时候我用的是Sensor.TYPE_ROTATION_VECTOR物理传感器均采用?

I'm developing for Honeycomb Gingerbread and I was wondering, which physical sensors are used when I use the Sensor.TYPE_ROTATION_VECTOR?

是否使用指南针和加速计的组合?或者陀螺仪+加速?或三者?或者是其他东西? 我问的原因是,我的应用程序行为不同的两种不同的硬件,他们实际上应该有相同类型的传感器。

Does it use a combination of compass and accelerometers? Or gyro + accel? Or all three? Or something else? The reason I'm asking is that my app behaves differently on two different pieces of hardware, and they should actually have the same type of sensors.

谢谢, 马克

推荐答案

我知道它已经有一段时间,因为这个问题被问过,但我没有看到一个明确的答案,所以......

I realize it's been a while since the question was asked, but I don't see a clear answer, so...

它使用所有三个传感器,如果他们提供。使用磁场传感器的关键是有一些参考绝对点。而旋转传感器需要一开始定位自己,然后消除漂移的陀螺仪引入了一段时间。陀螺仍在使用,因为它是precision和良好的响应时间。加速度计有助于确定重力矢量。

It uses all three sensors if they're available. The use of magnetic field sensor is crucial to have some absolute point of reference. The "rotation sensor" needs to initially orient itself and then eliminate the drift that gyro introduces over time. Gyro is still used because of it's precision and good response time. The accelerometer helps determine the gravity vector.

这篇关于哪些传感器用于Sensor.TYPE_ROTATION_VECTOR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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