Skip to main content
Visitor II
January 16, 2020
Solved

MotionGC Init and SetFrequency Funcitons

  • January 16, 2020
  • 1 reply
  • 964 views

Hi everyone. I'm using MotionGC library to calibrate my LSM6DSL gyroscope. In User Manual of library it is stated that "void MotionGC_Initialize(float freq) "function takes "float" as input argument. But when I call the function according to the user manual, I got a Hard Fault. If I pass the frequency variable input as its address and define Init function as "void MotionGC_Initialize(float *freq)" no faults observed, it looks like it works but I can not be sure if its working properly. Calibration process takes much time.

Is there anyone who had any experience about this problem?

Thanks.

    This topic has been closed for replies.
    Best answer by Miroslav BATEK

    Hi @Nazım Önder ORhan​

    you have to pass the freq value as pointer (address). There is a bug in the User Manual.

    The device must be still to get the calibration values. You can fine tune the knobs to have faster convergence but less accuracy.

    1 reply

    ST Employee
    January 16, 2020

    Hi @Nazım Önder ORhan​

    you have to pass the freq value as pointer (address). There is a bug in the User Manual.

    The device must be still to get the calibration values. You can fine tune the knobs to have faster convergence but less accuracy.

    N ORhanAuthor
    Visitor II
    January 16, 2020

    Thanks Mr Batek.