serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, icao, Endian.little);
  data_.setUint16(4, stallspeed, Endian.little);
  MavlinkMessage.setInt8List(data_, 6, callsign);
  data_.setUint8(15, emittertype);
  data_.setUint8(16, aircraftsize);
  data_.setUint8(17, gpsoffsetlat);
  data_.setUint8(18, gpsoffsetlon);
  data_.setUint8(19, rfselect);
  return data_;
}