From f579e84c53f86ab15b49606f02351c044f7d5358 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 10 Jun 2024 10:19:33 -0400 Subject: [PATCH] d/twrap: define twrap_hmd_correct_pose_from_basalt only if XRT_FEATURE_SLAM Part-of: --- src/xrt/drivers/twrap/twrap_slam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xrt/drivers/twrap/twrap_slam.c b/src/xrt/drivers/twrap/twrap_slam.c index 4bd31a100..e2d43fa85 100644 --- a/src/xrt/drivers/twrap/twrap_slam.c +++ b/src/xrt/drivers/twrap/twrap_slam.c @@ -72,6 +72,7 @@ slam_device(struct xrt_device *xdev) return (struct slam_device *)xdev; } +#ifdef XRT_FEATURE_SLAM static struct xrt_pose twrap_hmd_correct_pose_from_basalt(struct xrt_pose pose) { @@ -81,6 +82,7 @@ twrap_hmd_correct_pose_from_basalt(struct xrt_pose pose) pose.orientation.z = -pose.orientation.z; return pose; } +#endif static void twrap_slam_get_tracked_pose(struct xrt_device *xdev,