When I calibrat the conpassno the QGC warn mag sensor 0

That is coming from the firmware. You should repost in a firmware forum