Android Pitch and Roll Issue

后端 未结 4 1476
情话喂你
情话喂你 2021-01-03 06:17

I am working on a tilt app for Android. I am having an issue with Portrait & landscape mode. When the pitch = 90 degrees (phone on end) and even slightly before the ro

4条回答
  •  长发绾君心
    2021-01-03 07:07

    What you describe is called gimbal lock. At pitch +/-90, yaw -(+) roll is completely undefined. Near pitch +/-90, small nois/error in attitude can cause large fluctuations in yaw and roll individually even though there is no large change in actual orientation. Here is a great write-up on yaw, pitch roll (and how thay are not implemented well on many platforms):

    http://www.sensorplatforms.com/understanding-orientation-conventions-mobile-platforms/

提交回复
热议问题