serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, timestamp, Endian.little);
data_.setUint64(8, customState, Endian.little);
data_.setInt32(16, lat, Endian.little);
data_.setInt32(20, lon, Endian.little);
data_.setFloat32(24, alt, Endian.little);
MavlinkMessage.setFloat32List(data_, 28, vel);
MavlinkMessage.setFloat32List(data_, 40, acc);
MavlinkMessage.setFloat32List(data_, 52, attitudeQ);
MavlinkMessage.setFloat32List(data_, 68, rates);
MavlinkMessage.setFloat32List(data_, 80, positionCov);
data_.setUint8(92, estCapabilities);
return data_;
}