serialize method
Implementation
@override
ByteData serialize() {
var data_ = ByteData(mavlinkEncodedLength);
data_.setUint64(0, uid, Endian.little);
data_.setUint32(8, timeBootMs, Endian.little);
data_.setUint32(12, firmwareVersion, Endian.little);
data_.setUint32(16, hardwareVersion, Endian.little);
data_.setFloat32(20, rollMin, Endian.little);
data_.setFloat32(24, rollMax, Endian.little);
data_.setFloat32(28, pitchMin, Endian.little);
data_.setFloat32(32, pitchMax, Endian.little);
data_.setFloat32(36, yawMin, Endian.little);
data_.setFloat32(40, yawMax, Endian.little);
data_.setUint16(44, capFlags, Endian.little);
data_.setUint16(46, customCapFlags, Endian.little);
MavlinkMessage.setInt8List(data_, 48, vendorName);
MavlinkMessage.setInt8List(data_, 80, modelName);
MavlinkMessage.setInt8List(data_, 112, customName);
data_.setUint8(144, gimbalDeviceId);
return data_;
}