mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
d/hdk: Use float to avoid implicit cast.
This commit is contained in:
parent
fece0458b6
commit
3e8bd73e34
|
@ -162,7 +162,7 @@ hdk_device_get_tracked_pose(struct xrt_device *xdev,
|
|||
quat.y = fromFixedPoint<1, 14>(hdk_get_le_int16(buf));
|
||||
quat.w = fromFixedPoint<1, 14>(hdk_get_le_int16(buf));
|
||||
// Used to produce 90 degree rotations
|
||||
#define HDK_SIN_PI_OVER_4 0.7071068
|
||||
#define HDK_SIN_PI_OVER_4 0.7071068f
|
||||
struct xrt_quat rot_90_about_x
|
||||
{
|
||||
HDK_SIN_PI_OVER_4, 0, 0, HDK_SIN_PI_OVER_4
|
||||
|
|
Loading…
Reference in a new issue