serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setFloat32(8, uelev, Endian.little);
  data_.setFloat32(12, uthrot, Endian.little);
  data_.setFloat32(16, uthrot2, Endian.little);
  data_.setFloat32(20, uaill, Endian.little);
  data_.setFloat32(24, uailr, Endian.little);
  data_.setFloat32(28, urud, Endian.little);
  data_.setUint8(32, obctrlStatus);
  return data_;
}