serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, distance, Endian.little);
  data_.setFloat32(4, voltage, Endian.little);
  return data_;
}