code: def packet_loss(self):
          '''packet loss as a percentage'''
          if self.mav_count == 0:
              return 0
          return (100.0*self.mav_loss)/(self.mav_count+self.mav_lossf packet_loss(self):
          '''packet loss as a percentage'''
          if self.mav_count == 0:
              return 0
          return (100.0*self.mav_loss)/(self.mav_count+self.mav_loss)
docs: packet loss as a percentage