Packet/msg receive from gcs

I wanted to know where or in which file/function a mavlink msg/packet gets received in firmware.

Hi @Manish,

AP’s mavlink interface is described on this developer wiki page but the short answer to your question is that the GCS_MAVLink library is responsible for most of the sending/receiving of mavlink messages.

Thank you for reply @rmackay9 .

but i just want a function where it actually receives the full Mavlink message.

Actually, I am confused between packets and payload.