serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  MavlinkMessage.setUint16List(data_, 0, aileron);
  MavlinkMessage.setUint16List(data_, 6, elevator);
  MavlinkMessage.setUint16List(data_, 12, rudder);
  MavlinkMessage.setUint16List(data_, 18, gyro);
  MavlinkMessage.setUint16List(data_, 22, pitch);
  MavlinkMessage.setUint16List(data_, 32, throttle);
  return data_;
}