serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, framerate, Endian.little);
  data_.setUint32(4, bitrate, Endian.little);
  data_.setUint16(8, resolutionH, Endian.little);
  data_.setUint16(10, resolutionV, Endian.little);
  data_.setUint16(12, rotation, Endian.little);
  data_.setUint8(14, cameraId);
  data_.setUint8(15, status);
  MavlinkMessage.setInt8List(data_, 16, uri);
  return data_;
}