serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, vx, Endian.little);
  data_.setFloat32(4, vy, Endian.little);
  data_.setFloat32(8, vz, Endian.little);
  data_.setFloat32(12, diffPressure, Endian.little);
  data_.setFloat32(16, eas2tas, Endian.little);
  data_.setFloat32(20, ratio, Endian.little);
  data_.setFloat32(24, stateX, Endian.little);
  data_.setFloat32(28, stateY, Endian.little);
  data_.setFloat32(32, stateZ, Endian.little);
  data_.setFloat32(36, pax, Endian.little);
  data_.setFloat32(40, pby, Endian.little);
  data_.setFloat32(44, pcz, Endian.little);
  return data_;
}