public void InitializeRotationBinding(CharInteger yaw, CharInteger pitch) { sbyte syaw = (sbyte)yaw.Value; sbyte spitch = (sbyte)pitch.Value; float degtorad = (float)Math.PI / 180f; float degfactor = 2 * 0.70555f; //m_BoundYaw = yaw; m_Rotation.Roll = 0; //spitch*degfactor*degtorad; m_Rotation.Pitch = syaw * degfactor * degtorad; m_Rotation.Yaw = 0; //syaw*degfactor*degtorad; UpdateTransform(); Trace.WriteLine(string.Format("yaw={0} pitch={1}", syaw, spitch)); }