How to generate 9-axis data with geomagnetic information using the ISPU function of lsm6dso16is
Hi, I am trying to generate 9-axis quaternion data using the ISPU function of the LSM6DSO16IS.
Hardware environment: nucleo-F401RE + IKS01A3 + LSM6DSO16IS.
Software environment: cube ide project generated with MEMS-STUDIO. configuratin file inside ISPU is F:\en.x-cube-ispu\Ispu\ism330is_lsm6dso16is\sensor_fusion_9x\output\sensor_ fusion_9x.ucf.
Now I have a couple of queries that I can't understand:
1. I understand that the IIC pin of the geomagnetic sensor LIS2MDL should be connected to the MSDA,MSCL pin of the LSM6DSO16IS, and the LSM6DSO16IS takes the initiative to read the data from the LIS2MDL, and then the ISPU generates the 9-axis data with geomagnetic information. However, when I read the production project code, I found that the LIS2MDL data is read/written through the IIC interface of F401 microcontroller, which is mounted on the same iic bus as the LSM6DSO16IS, if so, how can the ISPU get the geomagnetic information to generate the 9-axis data?
2. en.x-cube-ispu\Ispu\ism330is_lsm6dso16is\sensor_fusion_9x\output\ shub.ucf How is this file used? This is supposed to read and write geomagnetic data via the master iic of the LSM6DSO16IS, but the algobuild in MEMS-STUDIO does not use this file?
3.How does the 9-axis output of the ispu function perform geomagnetic offset correction?
The above issues need to be resolved urgently, and I sincerely look forward to your reply!
