serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, directionX, Endian.little);
  data_.setFloat32(4, directionY, Endian.little);
  data_.setFloat32(8, directionZ, Endian.little);
  data_.setUint8(12, compassId);
  data_.setUint8(13, calMask);
  data_.setUint8(14, calStatus);
  data_.setUint8(15, attempt);
  data_.setUint8(16, completionPct);
  MavlinkMessage.setUint8List(data_, 17, completionMask);
  return data_;
}