Why are my MATLAB Mobile orientation measurements unstable when my mobile device points vertically up?

2 views (last 30 days)
When I hold my phone in a "horizontal" configuration (screen facing me, top of phone to the left/right), orientation measurements are as expected. However, when I hold my phone in a "vertical" configuration (screen facing me, top of phone to ceiling), my Y-axis orientation measurements are steady but my X-axis and Z-axis orientation measurements are unstable and fluctuate significantly.
Are the fluctuating measurements expected for a "vertical" configuration? I have been able to reproduce this behaviour on various Android and iOS mobile devices.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Nov 2021
Fluctuating orientation measurements are expected when a mobile device's pitch measurement approaches 90°. They are a result of the "Gimbal Lock" phenomenon.
The Gimbal Lock occurs at a singularity point in the orientation measurement configuration: when the pitch of the mobile device is 90°, changes in yaw are indistinguishable from changes in roll, i.e. the orientation is not fully defined. Consequently, azimuth and roll measurements become unstable as the pitch approaches the singularity at 90°.

More Answers (0)

Categories

Find more on MATLAB Mobile in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!