How to simplify the compass calibration

just like the calibration method on a phone ,but how to apply to UAV?