serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, airspeed, Endian.little);
  data_.setFloat32(4, rawPress, Endian.little);
  data_.setInt16(8, temperature, Endian.little);
  data_.setUint8(10, id);
  data_.setUint8(11, flags);
  return data_;
}