The open source OpenXR runtime
0
fork

Configure Feed

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

d/hydra: Rename tracking system

There are devices other than the Razer Hydra itself (notably the earlier Sixense TrueMotion wireless developer kits) which use this kind of tracking.

In-case I ever get my hands on one of these other devices, let's rename the tracking system to better match that. Since I have a hunch those developer kits are of similar low-level USB protocol to the hydra itself, meaning the driver would be shared.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2471>

+4 -4
+2 -2
src/xrt/drivers/hydra/hydra_driver.c
··· 668 668 669 669 // Create the system 670 670 struct hydra_system *hs = U_TYPED_CALLOC(struct hydra_system); 671 - hs->base.type = XRT_TRACKING_TYPE_HYDRA; 672 - snprintf(hs->base.name, XRT_TRACKING_NAME_LEN, "%s", "Razer Hydra magnetic tracking"); 671 + hs->base.type = XRT_TRACKING_TYPE_MAGNETIC; 672 + snprintf(hs->base.name, XRT_TRACKING_NAME_LEN, "%s", "Sixense Magnetic Tracking"); 673 673 // Arbitrary static transform from local space to base. 674 674 hs->base.initial_offset.position.y = 1.0f; 675 675 hs->base.initial_offset.position.z = -0.25f;
+2 -2
src/xrt/include/xrt/xrt_tracking.h
··· 52 52 // The device(s) are tracked by Ligthhouse 53 53 XRT_TRACKING_TYPE_LIGHTHOUSE, 54 54 55 - // The device(s) are tracked by Hydra 56 - XRT_TRACKING_TYPE_HYDRA, 55 + // The device(s) are tracked by magnetic fields, eg. Razer Hydra. 56 + XRT_TRACKING_TYPE_MAGNETIC, 57 57 58 58 // The device(s) are tracked by external SLAM 59 59 XRT_TRACKING_TYPE_EXTERNAL_SLAM,