serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint32(8, uptimeSec, Endian.little);
  data_.setUint16(12, vendorSpecificStatusCode, Endian.little);
  data_.setUint8(14, health);
  data_.setUint8(15, mode);
  data_.setUint8(16, subMode);
  return data_;
}