serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, timeUsec, Endian.little);
data_.setInt32(8, lat, Endian.little);
data_.setInt32(12, lng, Endian.little);
data_.setFloat32(16, altMsl, Endian.little);
data_.setFloat32(20, altRel, Endian.little);
data_.setFloat32(24, roll, Endian.little);
data_.setFloat32(28, pitch, Endian.little);
data_.setFloat32(32, yaw, Endian.little);
data_.setFloat32(36, focLen, Endian.little);
data_.setUint16(40, imgIdx, Endian.little);
data_.setUint8(42, targetSystem);
data_.setUint8(43, camIdx);
data_.setUint8(44, flags);
data_.setUint16(45, completedCaptures, Endian.little);
return data_;
}