I want to know how to calibrate all sensors (acc, gyro, mag) on BHI260AP. Is there a sample code for this? If not, what functions can I use. I would be very happy if you explain in order. bhy2_get_calibration_profile I guess I need to use functions like this. I want to find the bias, scale, misorientation values.
Secondly, I want a calibration method for the Magnetometer that will eliminate the soft and hard-iron effects. How can I do it. Thank you very much for your support. I can really move forward with your help.
You can refer to the calibration method from here: https://www.youtube.com/watch?v=Bw0WuAyGsnY
Refer to the attachment code to install and enable acc, gyro, mag, euler virtual sensor ID.
The calibration accuracy will be updated in the callback function. When all calibration accuracy are 3, you can use bhy2_get_calibration_profile() to get the calibration profile and save it.