serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt32(0, sueBaromAlt, Endian.little);
  data_.setUint32(4, sueTime, Endian.little);
  data_.setUint32(8, sueFlags, Endian.little);
  data_.setInt32(12, sueBaromPress, Endian.little);
  data_.setInt16(16, suePwmOutput4, Endian.little);
  data_.setInt16(18, suePwmInput5, Endian.little);
  data_.setInt16(20, suePwmInput6, Endian.little);
  data_.setInt16(22, suePwmInput7, Endian.little);
  data_.setInt16(24, suePwmInput8, Endian.little);
  data_.setInt16(26, suePwmInput9, Endian.little);
  data_.setInt16(28, suePwmInput10, Endian.little);
  data_.setInt16(30, suePwmInput11, Endian.little);
  data_.setInt16(32, suePwmInput12, Endian.little);
  data_.setInt16(34, suePwmOutput1, Endian.little);
  data_.setInt16(36, suePwmOutput2, Endian.little);
  data_.setInt16(38, suePwmOutput3, Endian.little);
  data_.setInt16(40, suePwmInput1, Endian.little);
  data_.setInt16(42, suePwmOutput5, Endian.little);
  data_.setInt16(44, suePwmOutput6, Endian.little);
  data_.setInt16(46, suePwmOutput7, Endian.little);
  data_.setInt16(48, suePwmOutput8, Endian.little);
  data_.setInt16(50, suePwmOutput9, Endian.little);
  data_.setInt16(52, suePwmOutput10, Endian.little);
  data_.setInt16(54, suePwmOutput11, Endian.little);
  data_.setInt16(56, suePwmOutput12, Endian.little);
  data_.setInt16(58, sueImuLocationX, Endian.little);
  data_.setInt16(60, sueImuLocationY, Endian.little);
  data_.setInt16(62, sueImuLocationZ, Endian.little);
  data_.setInt16(64, sueLocationErrorEarthX, Endian.little);
  data_.setInt16(66, sueLocationErrorEarthY, Endian.little);
  data_.setInt16(68, sueLocationErrorEarthZ, Endian.little);
  data_.setInt16(70, suePwmInput2, Endian.little);
  data_.setInt16(72, sueMemoryStackFree, Endian.little);
  data_.setInt16(74, sueImuVelocityX, Endian.little);
  data_.setInt16(76, sueImuVelocityY, Endian.little);
  data_.setInt16(78, sueImuVelocityZ, Endian.little);
  data_.setInt16(80, sueWaypointGoalX, Endian.little);
  data_.setInt16(82, sueWaypointGoalY, Endian.little);
  data_.setInt16(84, sueWaypointGoalZ, Endian.little);
  data_.setInt16(86, sueAeroX, Endian.little);
  data_.setInt16(88, sueAeroY, Endian.little);
  data_.setInt16(90, sueAeroZ, Endian.little);
  data_.setInt16(92, sueBaromTemp, Endian.little);
  data_.setInt16(94, suePwmInput3, Endian.little);
  data_.setInt16(96, suePwmInput4, Endian.little);
  data_.setInt16(98, sueBatVolt, Endian.little);
  data_.setInt16(100, sueBatAmp, Endian.little);
  data_.setInt16(102, sueBatAmpHours, Endian.little);
  data_.setInt16(104, sueDesiredHeight, Endian.little);
  data_.setInt16(106, sueOscFails, Endian.little);
  return data_;
}