Skip to main content
Visitor II
June 29, 2023
Question

How calibrate 2 magnetic sensors concurrently with MotionMC library?

  • June 29, 2023
  • 1 reply
  • 963 views

I would like to calibrate 2 magnetic sensors concurrently with MotionMC library. However, the functions from the library  for MotionMC_Initialize,  MotionMC_Update and MotionMC_GetCalParams do not need inputting an ID. If calibrate 2 sensors in the same time or power cycle,  whether will HI_Bias[3] and SF_Matrix[3][3] coefficients be overwritten?

I do appreciate any idea for calibrating 2 magnetic sensors in same time with MotionMC library.

Qingshan

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    July 11, 2023

    Hi @QShan.1 ,

    what you want to do is feasible, you have to write a function to which you feed also the sensor ID, that keeps track of the 2 different HI_Bias[3] and SF_Matrix[3][3] for the different sensors.
    if you managed to perform the calibration of one sensor, this would be quite easy =)

    If this answers your question, please, mark this as "best answer", by clicking on the "accept as solution" to help the other users of the community

    Niccolò