sensor

Strange behavior with android orientation sensor

╄→尐↘猪︶ㄣ 提交于 2019-11-26 02:04:55
Currently, I'm trying to rotate 3D Cube using orientation sensor values, using getRotation() method. Some unexpected behaviors are observed when the android device is rotated above some bounds. For instance, if I make the device 'stand up', the value of the 'roll' just becomes crazy. Also I'm experiencing the phenomenon similar to so-called gimbal-lock. The only difference is I'm experiencing the very problem even before applying the sensor values to the 3D rotation. When I try to change the 'pitch' value by rotating the device around only 'pitch' axis, the 'yaw' value also changes according

Strange behavior with android orientation sensor

旧城冷巷雨未停 提交于 2019-11-26 01:49:55
问题 Currently, I\'m trying to rotate 3D Cube using orientation sensor values, using getRotation() method. Some unexpected behaviors are observed when the android device is rotated above some bounds. For instance, if I make the device \'stand up\', the value of the \'roll\' just becomes crazy. Also I\'m experiencing the phenomenon similar to so-called gimbal-lock. The only difference is I\'m experiencing the very problem even before applying the sensor values to the 3D rotation. When I try to