¡@

Home 

2014/10/16 ¤W¤È 08:18:43

android Programming Glossary: matrixmultiplication

Gyroscope Issues with Device Orientation

http://stackoverflow.com/questions/14310347/gyroscope-issues-with-device-orientation

accMagOrientation float test new float 3 SensorManager.getOrientation initMatrix test gyroMatrix matrixMultiplication gyroMatrix initMatrix initState false copy the new gyro values into the gyro array convert the raw gyro data into a rotation.. deltaMatrix deltaVector apply the new rotation interval on the gyroscope based rotation matrix gyroMatrix matrixMultiplication gyroMatrix deltaMatrix get the gyroscope based orientation from the rotation matrix SensorManager.getOrientation gyroMatrix.. 3 sinZ zM 4 cosZ zM 5 0.0f zM 6 0.0f zM 7 0.0f zM 8 1.0f rotation order is y x z roll pitch azimuth float resultMatrix matrixMultiplication xM yM resultMatrix matrixMultiplication zM resultMatrix return resultMatrix private float matrixMultiplication float A float..