just simplely parse the header and check code of mavlink packet