serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setInt32(0, lat, Endian.little);
data_.setInt32(4, lng, Endian.little);
data_.setInt16(8, alt, Endian.little);
data_.setInt16(10, breakAlt, Endian.little);
data_.setUint16(12, landDir, Endian.little);
data_.setUint8(14, targetSystem);
data_.setUint8(15, targetComponent);
data_.setUint8(16, idx);
data_.setUint8(17, count);
data_.setUint8(18, flags);
return data_;
}