How to solve the error compass not healthy in APM 2.8

I am a begineer and i am creating drone using APM 2.8 .while programming i saw the error message compass not healthy kindly help me to solve the problem

Hello Lokesh,
Did you manage to solve the problem, i am also getting same error and don’t know how to solve it.