cancel
Showing results for 
Search instead for 
Did you mean: 

Mems Library IKS01A3 e-compass

JYUNWEI wu
Associate III

Hello eveyone,

I used LSM6DS3 mems that I would like to get quaternion data, without MAGNETIC. Can I use MotionEC_Run function and without MAGNETIC?

And then, I try to run MotionEC_Run(&data_in, &data_out) function under the STM32CubeExpansion_MEMS1_V6.1.0\Projects\STM32L476RG-Nucleo\Applications\IKS01A3\ECompass example code, but I cannot get any vaule from this function. However, I try to fill zero value in MAGNETIC functions, but I also cannot get any value. So, I don't know how to solve it because this example had already be included a library.

2 REPLIES 2
Miroslav BATEK
ST Employee

Hello @JYUNWEI wu​,

The MotionMC uses the accelerometer and magnetometer, it cannot work with only accelerometer.

If you want to calculated device orientation using accelerometer and gyroscope (LSM6DS3) you can use MotionFX in 6-axis mode.

JYUNWEI wu
Associate III

Thanks a lot, I solved it.