Commit ff341e43 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

d/psvr: Use standard gravity value

parent d3eb48ad
Pipeline #63961 passed with stages
in 1 minute and 27 seconds
......@@ -183,9 +183,9 @@ scale_led_power(uint8_t power)
static void
accel_from_psvr_vec(const struct xrt_vec3_i32 *accel, struct xrt_vec3 *out_vec)
{
out_vec->x = accel->x * (9.81 / 16384.0);
out_vec->y = accel->y * (9.81 / 16384.0);
out_vec->z = accel->z * (9.81 / 16384.0);
out_vec->x = accel->x * (MATH_GRAVITY_M_S2 / 16384.0);
out_vec->y = accel->y * (MATH_GRAVITY_M_S2 / 16384.0);
out_vec->z = accel->z * (MATH_GRAVITY_M_S2 / 16384.0);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment