serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt32(0, landingLat, Endian.little);
  data_.setInt32(4, landingLon, Endian.little);
  data_.setInt32(8, pathLat, Endian.little);
  data_.setInt32(12, pathLon, Endian.little);
  data_.setInt32(16, arcEntryLat, Endian.little);
  data_.setInt32(20, arcEntryLon, Endian.little);
  data_.setFloat32(24, altitude, Endian.little);
  data_.setFloat32(28, expectedTravelDistance, Endian.little);
  data_.setFloat32(32, crossTrackError, Endian.little);
  data_.setUint8(36, stage);
  return data_;
}