serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  MavlinkMessage.setFloat32List(data_, 8, posX);
  MavlinkMessage.setFloat32List(data_, 28, posY);
  MavlinkMessage.setFloat32List(data_, 48, posZ);
  MavlinkMessage.setFloat32List(data_, 68, delta);
  MavlinkMessage.setFloat32List(data_, 88, posYaw);
  data_.setUint8(108, validPoints);
  return data_;
}