serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setFloat32(4, imageInterval, Endian.little);
  data_.setUint32(8, recordingTimeMs, Endian.little);
  data_.setFloat32(12, availableCapacity, Endian.little);
  data_.setUint8(16, imageStatus);
  data_.setUint8(17, videoStatus);
  data_.setInt32(18, imageCount, Endian.little);
  return data_;
}