quaternion conversion
in progress: working on device attitude matrix