serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt32(0, lat, Endian.little);
  data_.setInt32(4, lon, Endian.little);
  data_.setUint16(8, gridSpacing, Endian.little);
  MavlinkMessage.setInt16List(data_, 10, data);
  data_.setUint8(42, gridbit);
  return data_;
}