陀螺仪与加速度计? [英] Gyroscope vs Accelerometer?

查看:177
本文介绍了陀螺仪与加速度计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在iOS 4不再是NDA,我想知道Gyroscope为开发人员提供的加速度计。 API有区别吗?其他的东西?

Now that iOS 4 is no longer NDA, I would like to know what Gyroscope has to offer over the Accelerometer for developers. Is there a difference in APIs? Other things?

推荐答案

MEMs陀螺仪是一种变化率设备。当设备在其任何轴上旋转时,您可以看到旋转的变化。加速度计仅提供沿X,Y和Z向量的力,并且不能解决扭曲。通过使用两个传感器,您通常可以实现所谓的6DOF(自由度)惯性系统 - 或航位推算 - 允许您查找设备的相对物理位置。 (请注意,所有惯性系统都会漂移,因此长期不稳定)。

A MEMs gyroscope is a rate of change device. As the device rotates in any its axis, you can see a change in rotation. An accelerometer only provides the force along the X,Y,and Z vectors, and cannot solve for "twist". By using both sensors, you can often implement what is referred to as a 6DOF (degrees of freedom) inertial system - or dead reckoning - allowing you to find the relative physical location of the device. (Note that all inertial systems drift, so its not stable in the long term).

简而言之:陀螺仪测量旋转,加速度计测量平移。

In short: gyroscopes measure rotation, accelerometers measure translation.

用于读取陀螺仪的新API

这篇关于陀螺仪与加速度计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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