d/wmr: Fix accel axis conversion

This commit is contained in:
Jakob Bornecrantz 2021-04-27 20:20:56 +01:00 committed by Jakob Bornecrantz
parent f09e02c517
commit daccde940e
2 changed files with 4 additions and 1 deletions

View file

@ -1 +1,4 @@
---
- mr.803
---
wmr: Initial commit of driver, 3DoF only.

View file

@ -22,7 +22,7 @@
void
vec3_from_hololens_accel(int32_t sample[3][4], int i, struct xrt_vec3 *out_vec)
{
out_vec->x = (float)sample[0][i] * 0.001f * -1.0f;
out_vec->x = (float)sample[0][i] * 0.001f * 1.0f;
out_vec->y = (float)sample[1][i] * 0.001f * -1.0f;
out_vec->z = (float)sample[2][i] * 0.001f * -1.0f;
}