Open Mission Planner and Connect autopilot through COM port 
Image
 
Initial setup, Mandatory Harware, Compass then Select Pixhawk or APM
Image
Hit Live calibration and Get samples, Move Compass in all direction till 500-600 samples are reached
Image
Hit Done. New Offsets should be within -150 to +150