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

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

问题描述

现在 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天全站免登陆