Skip to main content
Visitor II
May 20, 2019
Question

Mems Library IKS01A3 e-compass

  • May 20, 2019
  • 2 replies
  • 916 views

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.

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 20, 2019

    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.

    Visitor II
    September 9, 2019

    Thanks a lot, I solved it.