code: def pack(self):
          '''pack a FD FDM buffer from current values'''
          for i in range(len(self.values)):
              if math.isnan(self.values[i]):
                  self.values[i] = 0
          return struct.pack(self.pack_string, *self.valuesf pack(self):
          '''pack a FD FDM buffer from current values'''
          for i in range(len(self.values)):
              if math.isnan(self.values[i]):
                  self.values[i] = 0
          return struct.pack(self.pack_string, *self.values)
docs: pack a FD FDM buffer from current values