SerialUdbExtraF2B.parse constructor

SerialUdbExtraF2B.parse(
  1. ByteData data_
)

Implementation

factory SerialUdbExtraF2B.parse(ByteData data_) {
  if (data_.lengthInBytes < SerialUdbExtraF2B.mavlinkEncodedLength) {
    var len = SerialUdbExtraF2B.mavlinkEncodedLength - data_.lengthInBytes;
    var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
    data_ = Uint8List.fromList(d).buffer.asByteData();
  }
  var sueBaromAlt = data_.getInt32(0, Endian.little);
  var sueTime = data_.getUint32(4, Endian.little);
  var sueFlags = data_.getUint32(8, Endian.little);
  var sueBaromPress = data_.getInt32(12, Endian.little);
  var suePwmOutput4 = data_.getInt16(16, Endian.little);
  var suePwmInput5 = data_.getInt16(18, Endian.little);
  var suePwmInput6 = data_.getInt16(20, Endian.little);
  var suePwmInput7 = data_.getInt16(22, Endian.little);
  var suePwmInput8 = data_.getInt16(24, Endian.little);
  var suePwmInput9 = data_.getInt16(26, Endian.little);
  var suePwmInput10 = data_.getInt16(28, Endian.little);
  var suePwmInput11 = data_.getInt16(30, Endian.little);
  var suePwmInput12 = data_.getInt16(32, Endian.little);
  var suePwmOutput1 = data_.getInt16(34, Endian.little);
  var suePwmOutput2 = data_.getInt16(36, Endian.little);
  var suePwmOutput3 = data_.getInt16(38, Endian.little);
  var suePwmInput1 = data_.getInt16(40, Endian.little);
  var suePwmOutput5 = data_.getInt16(42, Endian.little);
  var suePwmOutput6 = data_.getInt16(44, Endian.little);
  var suePwmOutput7 = data_.getInt16(46, Endian.little);
  var suePwmOutput8 = data_.getInt16(48, Endian.little);
  var suePwmOutput9 = data_.getInt16(50, Endian.little);
  var suePwmOutput10 = data_.getInt16(52, Endian.little);
  var suePwmOutput11 = data_.getInt16(54, Endian.little);
  var suePwmOutput12 = data_.getInt16(56, Endian.little);
  var sueImuLocationX = data_.getInt16(58, Endian.little);
  var sueImuLocationY = data_.getInt16(60, Endian.little);
  var sueImuLocationZ = data_.getInt16(62, Endian.little);
  var sueLocationErrorEarthX = data_.getInt16(64, Endian.little);
  var sueLocationErrorEarthY = data_.getInt16(66, Endian.little);
  var sueLocationErrorEarthZ = data_.getInt16(68, Endian.little);
  var suePwmInput2 = data_.getInt16(70, Endian.little);
  var sueMemoryStackFree = data_.getInt16(72, Endian.little);
  var sueImuVelocityX = data_.getInt16(74, Endian.little);
  var sueImuVelocityY = data_.getInt16(76, Endian.little);
  var sueImuVelocityZ = data_.getInt16(78, Endian.little);
  var sueWaypointGoalX = data_.getInt16(80, Endian.little);
  var sueWaypointGoalY = data_.getInt16(82, Endian.little);
  var sueWaypointGoalZ = data_.getInt16(84, Endian.little);
  var sueAeroX = data_.getInt16(86, Endian.little);
  var sueAeroY = data_.getInt16(88, Endian.little);
  var sueAeroZ = data_.getInt16(90, Endian.little);
  var sueBaromTemp = data_.getInt16(92, Endian.little);
  var suePwmInput3 = data_.getInt16(94, Endian.little);
  var suePwmInput4 = data_.getInt16(96, Endian.little);
  var sueBatVolt = data_.getInt16(98, Endian.little);
  var sueBatAmp = data_.getInt16(100, Endian.little);
  var sueBatAmpHours = data_.getInt16(102, Endian.little);
  var sueDesiredHeight = data_.getInt16(104, Endian.little);
  var sueOscFails = data_.getInt16(106, Endian.little);

  return SerialUdbExtraF2B(
      sueBaromAlt: sueBaromAlt,
      sueTime: sueTime,
      sueFlags: sueFlags,
      sueBaromPress: sueBaromPress,
      suePwmOutput4: suePwmOutput4,
      suePwmInput5: suePwmInput5,
      suePwmInput6: suePwmInput6,
      suePwmInput7: suePwmInput7,
      suePwmInput8: suePwmInput8,
      suePwmInput9: suePwmInput9,
      suePwmInput10: suePwmInput10,
      suePwmInput11: suePwmInput11,
      suePwmInput12: suePwmInput12,
      suePwmOutput1: suePwmOutput1,
      suePwmOutput2: suePwmOutput2,
      suePwmOutput3: suePwmOutput3,
      suePwmInput1: suePwmInput1,
      suePwmOutput5: suePwmOutput5,
      suePwmOutput6: suePwmOutput6,
      suePwmOutput7: suePwmOutput7,
      suePwmOutput8: suePwmOutput8,
      suePwmOutput9: suePwmOutput9,
      suePwmOutput10: suePwmOutput10,
      suePwmOutput11: suePwmOutput11,
      suePwmOutput12: suePwmOutput12,
      sueImuLocationX: sueImuLocationX,
      sueImuLocationY: sueImuLocationY,
      sueImuLocationZ: sueImuLocationZ,
      sueLocationErrorEarthX: sueLocationErrorEarthX,
      sueLocationErrorEarthY: sueLocationErrorEarthY,
      sueLocationErrorEarthZ: sueLocationErrorEarthZ,
      suePwmInput2: suePwmInput2,
      sueMemoryStackFree: sueMemoryStackFree,
      sueImuVelocityX: sueImuVelocityX,
      sueImuVelocityY: sueImuVelocityY,
      sueImuVelocityZ: sueImuVelocityZ,
      sueWaypointGoalX: sueWaypointGoalX,
      sueWaypointGoalY: sueWaypointGoalY,
      sueWaypointGoalZ: sueWaypointGoalZ,
      sueAeroX: sueAeroX,
      sueAeroY: sueAeroY,
      sueAeroZ: sueAeroZ,
      sueBaromTemp: sueBaromTemp,
      suePwmInput3: suePwmInput3,
      suePwmInput4: suePwmInput4,
      sueBatVolt: sueBatVolt,
      sueBatAmp: sueBatAmp,
      sueBatAmpHours: sueBatAmpHours,
      sueDesiredHeight: sueDesiredHeight,
      sueOscFails: sueOscFails);
}