¡@

Home 

2014/10/15 ¤U¤È 10:13:04

iphone Programming Glossary: quat.w

Using quaternion instead of roll, pitch and yaw to track device motion

http://stackoverflow.com/questions/19239482/using-quaternion-instead-of-roll-pitch-and-yaw-to-track-device-motion

values as CMQuaternion quat self.motionManager.deviceMotion.attitude.quaternion myRoll radiansToDegrees atan2 2 quat.y quat.w quat.x quat.z 1 2 quat.y quat.y 2 quat.z quat.z myPitch radiansToDegrees atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x.. atan2 2 quat.y quat.w quat.x quat.z 1 2 quat.y quat.y 2 quat.z quat.z myPitch radiansToDegrees atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x quat.x 2 quat.z quat.z myYaw radiansToDegrees 2 quat.x quat.y quat.w quat.z When i noticed there.. atan2 2 quat.x quat.w quat.y quat.z 1 2 quat.x quat.x 2 quat.z quat.z myYaw radiansToDegrees 2 quat.x quat.y quat.w quat.z When i noticed there is some disparity in the yaw values i searched and could find from here link that yaw pitch..