serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, timestamp, Endian.little);
data_.setInt32(8, lat, Endian.little);
data_.setInt32(12, lon, Endian.little);
data_.setFloat32(16, alt, Endian.little);
MavlinkMessage.setFloat32List(data_, 20, vel);
MavlinkMessage.setFloat32List(data_, 32, acc);
MavlinkMessage.setFloat32List(data_, 44, qTarget);
MavlinkMessage.setFloat32List(data_, 60, rates);
MavlinkMessage.setFloat32List(data_, 72, positionStd);
MavlinkMessage.setFloat32List(data_, 80, velStd);
MavlinkMessage.setFloat32List(data_, 92, accStd);
data_.setUint8(104, id);
data_.setUint8(105, sensorCapabilities);
return data_;
}