serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setInt32(4, latCamera, Endian.little);
  data_.setInt32(8, lonCamera, Endian.little);
  data_.setInt32(12, altCamera, Endian.little);
  data_.setInt32(16, latImage, Endian.little);
  data_.setInt32(20, lonImage, Endian.little);
  data_.setInt32(24, altImage, Endian.little);
  MavlinkMessage.setFloat32List(data_, 28, q);
  data_.setFloat32(44, hfov, Endian.little);
  data_.setFloat32(48, vfov, Endian.little);
  return data_;
}