STMicroelectronics / STMems_Standard_C_drivers

Platform-independent drivers for STMicroelectronics MEMS motion and environmental sensors, based on standard C programming language.
BSD 3-Clause "New" or "Revised" License
729 stars 518 forks source link

Is SFLP quaternion supporteed for ODR>30Hz? #157

Closed Yaxit closed 1 year ago

Yaxit commented 1 year ago

Hello, I'm replicating the quaternion application with the lsm6dsv16bx IMU, but I'm getting garbage data when setting the ODR for the quaternion at 60Hz or above (basically many NaN values in the quaternion). The maximum ODR supported by the block (and the specific functions) does not seem to be documented, but I read on the datasheet that the pedometer works at 30Hz. Should we assume 30Hz for all the embedded functions? If so, why is there the option to have fifo batching for an even higher frequency?

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/8d7095f3891b2684585176692e6aca7945f1d77e/lsm6dsv16bx_STdC/examples/lsm6dsv16bx_sensor_fusion.c#L264C3-L264C33

Yaxit commented 1 year ago

Issue was identified as firmware related.