d/twrap: define twrap_hmd_correct_pose_from_basalt only if XRT_FEATURE_SLAM

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140>
This commit is contained in:
Simon Zeni 2024-06-10 10:19:33 -04:00
parent 58d388cdb4
commit f579e84c53

View file

@ -72,6 +72,7 @@ slam_device(struct xrt_device *xdev)
return (struct slam_device *)xdev; return (struct slam_device *)xdev;
} }
#ifdef XRT_FEATURE_SLAM
static struct xrt_pose static struct xrt_pose
twrap_hmd_correct_pose_from_basalt(struct xrt_pose 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; pose.orientation.z = -pose.orientation.z;
return pose; return pose;
} }
#endif
static void static void
twrap_slam_get_tracked_pose(struct xrt_device *xdev, twrap_slam_get_tracked_pose(struct xrt_device *xdev,