The open source OpenXR runtime
0
fork

Configure Feed

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

d/wmr: Fix pose correction from Basalt

There was a confusion about whether this was needed for some apps. It was.

authored by

Mateo de Mayo and committed by
Jakob Bornecrantz
604815cb e7c33766

+4
+4
src/xrt/drivers/wmr/wmr_hmd.c
··· 969 969 XRT_MAYBE_UNUSED static inline struct xrt_pose 970 970 wmr_hmd_correct_pose_from_basalt(struct xrt_pose pose) 971 971 { 972 + struct xrt_quat q = {0.70710678, 0, 0, 0.70710678}; 973 + math_quat_rotate(&q, &pose.orientation, &pose.orientation); 974 + math_quat_rotate_vec3(&q, &pose.position, &pose.position); 975 + 972 976 // Correct swapped axes 973 977 pose.position.y = -pose.position.y; 974 978 pose.position.z = -pose.position.z;