ICM-20948 chainge oriantation matrix

By rhoebeegeomilcom , 7 December 2022

We are using the ICM-20948 on a print that is orientated differently than the default chip orientation. We use the gravity vector, which can be retrieved using the default DMP image. Using the example from TDk we can change the orientation matrix so that the x-, y- and z-axis match our default use case. But when using this we get that the x- and z-axis always initiate at 0 m/s^2 and the Y-axis initiates at 9.8 m/s^2. It takes about 5 seconds with our current setting to get the correct gravity vector values for our default use case, which are: the x- and y-axis at 0 m/s^2 and the Z-axis at 9.8 m/s^2, see attached image for the visual representation.

Is there a way to send our orientation matrix to the ICM-20948 so it changes the gravity vector initiation values of the x- and y-axis at 0 m/s^2 and the Z-axis at 9.8 m/s^2? Or is there perhaps another DMP image available with initiation values that match our default use case?

phpbb Topic ID
39605