Update rotational data from the gyroscope with respect to a predefined orientation?

早过忘川 提交于 2019-12-08 06:15:16

问题


Normally rotational data from the gyroscope y axis is updated with respect to vertical orientation of the phone. But if this orientation slightly changes as shown in the diagram, is there any method that i could take the component of y rotation to vertical axis(Vertical orientation position of the phone), ( This is possible for linear components by using Cosine angles sine angles) But what about rotation? Anyway i can we do this?


回答1:


To my experience, gyroscope's values are mobile, meaning that the axis are updated as rotations intervene (that's true for Android, no reason not to be for iOS).

If you want to keep an eye on your 3 axis directions, you'll have to keep updated a rotation matrix :

Direction Cosine Matrix IMU : Theory

Euler angles and DCM



来源:https://stackoverflow.com/questions/11106102/update-rotational-data-from-the-gyroscope-with-respect-to-a-predefined-orientati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!