serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setFloat32(8, tempambient, Endian.little);
  data_.setFloat32(12, humidity, Endian.little);
  return data_;
}