serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setInt16(4, xacc, Endian.little);
  data_.setInt16(6, yacc, Endian.little);
  data_.setInt16(8, zacc, Endian.little);
  data_.setInt16(10, xgyro, Endian.little);
  data_.setInt16(12, ygyro, Endian.little);
  data_.setInt16(14, zgyro, Endian.little);
  data_.setInt16(16, xmag, Endian.little);
  data_.setInt16(18, ymag, Endian.little);
  data_.setInt16(20, zmag, Endian.little);
  data_.setInt16(22, temperature, Endian.little);
  return data_;
}