serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setUint32(4, errorStatus, Endian.little);
  data_.setUint32(8, batteryStatus, Endian.little);
  data_.setUint8(12, armStatus);
  data_.setUint8(13, chargeStatus);
  return data_;
}