serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint16(8, arrayId, Endian.little);
  MavlinkMessage.setInt8List(data_, 10, name);
  MavlinkMessage.setFloat32List(data_, 20, data);
  return data_;
}