tangled
alpha
login
or
join now
matrixfurry.com
/
monado
0
fork
atom
The open source OpenXR runtime
0
fork
atom
overview
issues
pulls
pipelines
m/3dof: Fix conversion warning
Jakob Bornecrantz
3 years ago
1afc1810
0a0d4a49
+2
-2
2 changed files
expand all
collapse all
unified
split
src
xrt
auxiliary
math
m_imu_3dof.c
m_imu_3dof.h
+1
-1
src/xrt/auxiliary/math/m_imu_3dof.c
···
81
81
snprintf(tmp, sizeof(tmp), "%slast.accel_length", prefix);
82
82
u_var_add_ro_f32(root, &f->last.accel_length, tmp);
83
83
snprintf(tmp, sizeof(tmp), "%slast.delta_ms", prefix);
84
84
-
u_var_add_ro_f32(root, &f->last.delta_ms, tmp);
84
84
+
u_var_add_ro_f64(root, &f->last.delta_ms, tmp);
85
85
86
86
snprintf(tmp, sizeof(tmp), "%sgrav.level_timestamp_ns", prefix);
87
87
u_var_add_ro_u64(root, &f->grav.level_timestamp_ns, tmp);
+1
-1
src/xrt/auxiliary/math/m_imu_3dof.h
···
40
40
uint64_t timestamp_ns;
41
41
struct xrt_vec3 gyro; //!< Angular velocity
42
42
struct xrt_vec3 accel; //!< Acceleration
43
43
-
float delta_ms;
43
43
+
double delta_ms;
44
44
float accel_length;
45
45
float gyro_length;
46
46
float gyro_biased_length;