Hi,
I am looking for library/sdk to implement fusion algorithm to generate quaternions, Euler angles for lsm6dsr runing on 52811. ST does have the library but it only runs on st board. Is there library/sdk can run on 52811/52832?
Thanks,
Hi,
I am looking for library/sdk to implement fusion algorithm to generate quaternions, Euler angles for lsm6dsr runing on 52811. ST does have the library but it only runs on st board. Is there library/sdk can run on 52811/52832?
Thanks,
Hello,
We don't have any official library for that module, but I see that ST has some HAL that you can base your development on.
There is also an open pull-request in the main zephyr repository for that sensor. You could try to cherry-pick that commit or patch it into your zephyr instance.
For quaternions there is the CMSIS-DSP library, specifically Quaternion Math Functions.
This library needs some Kconfig symbols to be enabled, please take a look at the CONFIG_CMSIS_DSP symbols and their dependencies, especially CONFIG_CMSIS_DSP_QUATERNIONMATH.
Best regards,
Michal
Thanks a lot! This is very helpful.