Android phone orientation overview including compass

前端 未结 4 1391
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 01:08

I\'ve been trying to get my head around the Android orientation sensors for a while. I thought I understood it. Then I realised I didn\'t. Now I think (hope) I have a better

4条回答
  •  孤城傲影
    2020-11-28 01:21

    Roll is a function of gravity, a 90 degree roll puts all of gravity into the x register.

    Pitch is the same, a 90 degree pitch up puts all of the component of gravity into the y register.

    Yaw / Heading / azimuth has no effect on gravity, it is ALWAYS at right angles to gravity, hence no matter which way you are facing gravity will be imeasurable.

    This is why you need a compass to assess, maybe that makes sense?

提交回复
热议问题