serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setInt32(0, latitude, Endian.little);
data_.setInt32(4, longitude, Endian.little);
data_.setInt32(8, altitude, Endian.little);
data_.setFloat32(12, x, Endian.little);
data_.setFloat32(16, y, Endian.little);
data_.setFloat32(20, z, Endian.little);
MavlinkMessage.setFloat32List(data_, 24, q);
data_.setFloat32(40, approachX, Endian.little);
data_.setFloat32(44, approachY, Endian.little);
data_.setFloat32(48, approachZ, Endian.little);
data_.setUint8(52, targetSystem);
data_.setUint64(53, timeUsec, Endian.little);
return data_;
}