code: def mavlink_packet(self, m):
          '''handle mavlink packets'''
          mtype = m.get_type()
          if mtype not in self.counts:
              self.counts[mtype] = 0
          self.counts[mtype] += f mavlink_packet(self, m):
          '''handle mavlink packets'''
          mtype = m.get_type()
          if mtype not in self.counts:
              self.counts[mtype] = 0
          self.counts[mtype] += 1
docs: handle mavlink packets