The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/psvr: Use standard gravity value

+3 -3
+3 -3
src/xrt/drivers/psvr/psvr_device.c
··· 183 183 static void 184 184 accel_from_psvr_vec(const struct xrt_vec3_i32 *accel, struct xrt_vec3 *out_vec) 185 185 { 186 - out_vec->x = accel->x * (9.81 / 16384.0); 187 - out_vec->y = accel->y * (9.81 / 16384.0); 188 - out_vec->z = accel->z * (9.81 / 16384.0); 186 + out_vec->x = accel->x * (MATH_GRAVITY_M_S2 / 16384.0); 187 + out_vec->y = accel->y * (MATH_GRAVITY_M_S2 / 16384.0); 188 + out_vec->z = accel->z * (MATH_GRAVITY_M_S2 / 16384.0); 189 189 } 190 190 191 191 static void