cancel
Showing results for 
Search instead for 
Did you mean: 

MotionGC Init and SetFrequency Funcitons

N ORhan
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee

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.

View solution in original post

2 REPLIES 2
Miroslav BATEK
ST Employee

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.

Thanks Mr Batek.