Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
ff341e43
Commit
ff341e43
authored
Sep 16, 2019
by
Jakob Bornecrantz
Browse files
d/psvr: Use standard gravity value
parent
d3eb48ad
Pipeline
#63961
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/drivers/psvr/psvr_device.c
View file @
ff341e43
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment