Closed Panky-codes closed 3 years ago
Hi,
This drivers repository are targeted for personal electronics devices and mass market purpose, so I think 6.6 kHz/1.6 kHz are not in the scope also because on vast majority of cases these drivers are used with Android OS where the requested max ODR in CDD specs is 400 Hz. Moreover too much interrupt per seconds (when no batching) on some target boards would lead to excessive CPU workload, this would create problems in the management of customer support requests. Anyway as you know these drivers are released here with the "as is" formula, so they can be changed easily as needed by extending the st_lsm6ds3_odr_table array and updating the ST_LSM6DS3_ODR_LIST_NUM values.
Best Regards, Mario
Thanks Mario. That explains the reason! Will do as you suggested!
This is more of a question than an issue. I initially wrote a userspace driver for lsm6ds3 but later found out that there is already a kernel IIO driver. But after some investigation, I saw that the kernel driver
st_lsm6ds3
only supports ouput data rate (ODR) upto only 416 Hz as it can be seen in this struct definition indrivers/iio/imu/st_lsm6ds3/st_lsm6ds3_core.c
:But the actual hardware supports ODR for accelerometer up to 6.66 kHz and for gyro up to 1.66 kHz. Is there a reason why the support for this ST chip is only until 416 Hz? Is there a way to scale it up?
Any help is appreciated!