Skip to main content
Anil3
Associate III
June 3, 2022
Question

Gyro_bias is not updating

  • June 3, 2022
  • 3 replies
  • 1011 views

Hi

I am using MotionGC_manager_update(&data_in, &data_out, &bias_update); library function in my program and i can able to get the data_out output from that function but the problem is bias_update is not becoming 1 it showing always 0 even though sensor is in steady position. what might be the reason for this can't able to debug as it is a library function. thanks in advance

This topic has been closed for replies.

3 replies

Petr S
ST Employee
June 10, 2022

I suggest to download X-CUBE-MEMS1 package and compare your code with the GyroscopeCalibration application, especially check whether you feed all data including timestamp in correct units.

Anil3
Anil3Author
Associate III
June 10, 2022

Hi @Petr S_O​ 

Now i can able to get the bias updated but now instead of motion_GC i implemented motion_DI Library as using this library we get the rotation, quaternioun, gravity and linear acceleration calibration part is also take care by the library.

How can i validate the values that i getting in output for this library?

Martin B
ST Employee
July 19, 2022

To validate library output data it is necessary to measure same data by other means (e.g.: by evaluating real device position to get rotation angles). Compare data and if match within some reasonable tolerance, the output data of library can be treated as correct.