2023-02-01 05:22 AM
I'm using an LSM303AGR to create a compass using the MotionEC library for calculating quaternions.
Since the ODR of the magnetometer inside the LSM303AGR is 20Hz while the ODR of the accelerometer is 25Hz with which frequency and with which data is it better to call the MotionEC_Run function?
2023-02-02 02:34 AM
I would recommend to run both accelerometer and magnetometer at 50Hz, this ODR is available for both sensors. If not possible you can call the function at 25Hz with actual accelerometer data and latest available magnetometer data.
2023-02-02 02:43 AM
Thanks for the reply, if instead I go down to 10Hz which is an ODR available for all 2 components is that a problem? I have not found any information on the minimum frequency with which MotionEC is usable.
2023-02-02 03:18 AM
It is not a problem. It depends how fast motion do you want to track and what is your target application. With 10Hz the response won't be so fast.