serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, lineLength, Endian.little);
  data_.setFloat32(12, speed, Endian.little);
  data_.setFloat32(16, tension, Endian.little);
  data_.setFloat32(20, voltage, Endian.little);
  data_.setFloat32(24, current, Endian.little);
  data_.setUint32(28, status, Endian.little);
  data_.setInt16(32, temperature, Endian.little);
  return data_;
}