serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setFloat32(4, q1, Endian.little);
  data_.setFloat32(8, q2, Endian.little);
  data_.setFloat32(12, q3, Endian.little);
  data_.setFloat32(16, q4, Endian.little);
  data_.setFloat32(20, rollspeed, Endian.little);
  data_.setFloat32(24, pitchspeed, Endian.little);
  data_.setFloat32(28, yawspeed, Endian.little);
  MavlinkMessage.setFloat32List(data_, 32, reprOffsetQ);
  return data_;
}