serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, timeUsec, Endian.little);
data_.setFloat32(8, p1, Endian.little);
data_.setFloat32(12, p2, Endian.little);
data_.setFloat32(16, p3, Endian.little);
data_.setFloat32(20, p4, Endian.little);
data_.setUint16(24, imgIdx, Endian.little);
data_.setUint8(26, targetSystem);
data_.setUint8(27, camIdx);
data_.setUint8(28, eventId);
return data_;
}