serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setFloat32(4, pressAbs, Endian.little);
  data_.setFloat32(8, pressDiff, Endian.little);
  data_.setInt16(12, temperature, Endian.little);
  data_.setInt16(14, temperaturePressDiff, Endian.little);
  return data_;
}