serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, airspeed, Endian.little);
  data_.setFloat32(4, groundspeed, Endian.little);
  data_.setFloat32(8, alt, Endian.little);
  data_.setFloat32(12, climb, Endian.little);
  data_.setInt16(16, heading, Endian.little);
  data_.setUint16(18, throttle, Endian.little);
  return data_;
}