serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, navRoll, Endian.little);
  data_.setFloat32(4, navPitch, Endian.little);
  data_.setFloat32(8, altError, Endian.little);
  data_.setFloat32(12, aspdError, Endian.little);
  data_.setFloat32(16, xtrackError, Endian.little);
  data_.setInt16(20, navBearing, Endian.little);
  data_.setInt16(22, targetBearing, Endian.little);
  data_.setUint16(24, wpDist, Endian.little);
  return data_;
}