The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/psvr: Normalize rotation

+9 -1
+2
doc/changes/drivers/mr.359.md
··· 1 + psvr: Normalize the rotation to not trip up the client app when it gives the 2 + rotation back to `st/oxr` again.
+7 -1
src/xrt/drivers/psvr/psvr_device.c
··· 1 1 // Copyright 2016, Joey Ferwerda. 2 - // Copyright 2019, Collabora, Ltd. 2 + // Copyright 2019-2020, Collabora, Ltd. 3 3 // SPDX-License-Identifier: BSL-1.0 4 4 /*! 5 5 * @file ··· 937 937 XRT_SPACE_RELATION_ORIENTATION_VALID_BIT | 938 938 XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT); 939 939 940 + 940 941 *out_relation_timestamp_ns = os_monotonic_get_ns(); 941 942 } else { 942 943 xrt_tracked_psvr_get_tracked_pose( 943 944 psvr->tracker, at_timestamp_ns, out_relation); 945 + 944 946 *out_relation_timestamp_ns = at_timestamp_ns; 945 947 } 948 + 949 + //! @todo Move this to the tracker. 950 + // Make sure that the orientation is valid. 951 + math_quat_normalize(&out_relation->pose.orientation); 946 952 } 947 953 948 954 static void