serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  MavlinkMessage.setFloat32List(data_, 8, q);
  data_.setFloat32(24, rollspeed, Endian.little);
  data_.setFloat32(28, pitchspeed, Endian.little);
  data_.setFloat32(32, yawspeed, Endian.little);
  MavlinkMessage.setFloat32List(data_, 36, covariance);
  return data_;
}