code: def mavlink_packet(self, m):
          '''handle an incoming mavlink packet'''
          if m.get_type() == 'PPP' and self.ppp_fd != -1:
              print("got ppp mavlink pkt len=%u" % m.length)
              os.write(self.ppp_fd, m.data[:m.length]f mavlink_packet(self, m):
          '''handle an incoming mavlink packet'''
          if m.get_type() == 'PPP' and self.ppp_fd != -1:
              print("got ppp mavlink pkt len=%u" % m.length)
              os.write(self.ppp_fd, m.data[:m.length])
docs: handle an incoming mavlink packet