I found magnetometer calibration is done for soft/hard distortions also for tilt compensation using gyro data as well,
but all of them perform for know step of the procedure (rotating aligned with know axis etc.)
I don't understand when the product is made and when it's used in a different place how to perform the calibration? my application cannot rotate the sensor as above once the product is made (a robot).
is there any other way to calibrate the magnetometer? if the location or environment is changed?