The calibration of the compass is easily found via the manual but here is some more information which is undocumented.
Make sure you calibrate the accelerometer and gyro then calibrate the compass afterwards. To get to the hidden menu for accelerometer and gyro tap the words ‘calibrate compass’ 5 times quickly and the hidden menu will pop up. Do not fly it until you have done those 2 extra calibrations. It will greatly reduce the chance of a fly away. This information was kindly provided by Chris Weavers
Make sure you calibrate the accelerometer and gyro then calibrate the compass afterwards. To get to the hidden menu for accelerometer and gyro tap the words ‘calibrate compass’ 5 times quickly and the hidden menu will pop up. Do not fly it until you have done those 2 extra calibrations. It will greatly reduce the chance of a fly away. This information was kindly provided by Chris Weavers