Transform device's attitude so that Z- axis is aligned with north and Y- is pointing gravity in CoreMotion?

戏子无情 提交于 2019-12-07 22:55:13

问题


I use CMAttitudeReferenceFrameXTrueNorthZVertical and this way rotation values roll, pitch and yaw are (0,0,0) when device is flat on table and X+ axis is pointing north.

What I would like to do is to have (0,0,0) values when Z- axis is pointing north and Y is now pointing at gravity? Is this possible?

来源:https://stackoverflow.com/questions/9626749/transform-devices-attitude-so-that-z-axis-is-aligned-with-north-and-y-is-poin

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