mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
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:
parent
58d388cdb4
commit
f579e84c53
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue