serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setUint32(4, flags, Endian.little);
  data_.setUint8(8, gimbalDeviceId);
  data_.setUint8(9, primaryControlSysid);
  data_.setUint8(10, primaryControlCompid);
  data_.setUint8(11, secondaryControlSysid);
  data_.setUint8(12, secondaryControlCompid);
  return data_;
}