serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint64(8, timeDeltaUsec, Endian.little);
  MavlinkMessage.setFloat32List(data_, 16, angleDelta);
  MavlinkMessage.setFloat32List(data_, 28, positionDelta);
  data_.setFloat32(40, confidence, Endian.little);
  return data_;
}