m/3dof: Fix conversion warning

This commit is contained in:
Jakob Bornecrantz 2022-04-30 20:31:20 +01:00
parent 0a0d4a49d5
commit 1afc18108e
2 changed files with 2 additions and 2 deletions

View file

@ -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);
u_var_add_ro_f32(root, &f->last.accel_length, tmp);
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);
u_var_add_ro_u64(root, &f->grav.level_timestamp_ns, tmp);

View file

@ -40,7 +40,7 @@ struct m_imu_3dof
uint64_t timestamp_ns;
struct xrt_vec3 gyro; //!< Angular velocity
struct xrt_vec3 accel; //!< Acceleration
float delta_ms;
double delta_ms;
float accel_length;
float gyro_length;
float gyro_biased_length;