mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
m/3dof: Fix conversion warning
This commit is contained in:
parent
0a0d4a49d5
commit
1afc18108e
|
@ -81,7 +81,7 @@ m_imu_3dof_add_vars(struct m_imu_3dof *f, void *root, const char *prefix)
|
||||||
snprintf(tmp, sizeof(tmp), "%slast.accel_length", prefix);
|
snprintf(tmp, sizeof(tmp), "%slast.accel_length", prefix);
|
||||||
u_var_add_ro_f32(root, &f->last.accel_length, tmp);
|
u_var_add_ro_f32(root, &f->last.accel_length, tmp);
|
||||||
snprintf(tmp, sizeof(tmp), "%slast.delta_ms", prefix);
|
snprintf(tmp, sizeof(tmp), "%slast.delta_ms", prefix);
|
||||||
u_var_add_ro_f32(root, &f->last.delta_ms, tmp);
|
u_var_add_ro_f64(root, &f->last.delta_ms, tmp);
|
||||||
|
|
||||||
snprintf(tmp, sizeof(tmp), "%sgrav.level_timestamp_ns", prefix);
|
snprintf(tmp, sizeof(tmp), "%sgrav.level_timestamp_ns", prefix);
|
||||||
u_var_add_ro_u64(root, &f->grav.level_timestamp_ns, tmp);
|
u_var_add_ro_u64(root, &f->grav.level_timestamp_ns, tmp);
|
||||||
|
|
|
@ -40,7 +40,7 @@ struct m_imu_3dof
|
||||||
uint64_t timestamp_ns;
|
uint64_t timestamp_ns;
|
||||||
struct xrt_vec3 gyro; //!< Angular velocity
|
struct xrt_vec3 gyro; //!< Angular velocity
|
||||||
struct xrt_vec3 accel; //!< Acceleration
|
struct xrt_vec3 accel; //!< Acceleration
|
||||||
float delta_ms;
|
double delta_ms;
|
||||||
float accel_length;
|
float accel_length;
|
||||||
float gyro_length;
|
float gyro_length;
|
||||||
float gyro_biased_length;
|
float gyro_biased_length;
|
||||||
|
|
Loading…
Reference in a new issue