2020-01-16 02:21 AM
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.
Solved! Go to Solution.
2020-01-16 03:07 AM
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.
2020-01-16 03:07 AM
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.
2020-01-16 06:25 AM
Thanks Mr Batek.