SerialUdbExtraF2A.parse constructor
SerialUdbExtraF2A.parse(
- ByteData data_
Implementation
factory SerialUdbExtraF2A.parse(ByteData data_) {
if (data_.lengthInBytes < SerialUdbExtraF2A.mavlinkEncodedLength) {
var len = SerialUdbExtraF2A.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var sueTime = data_.getUint32(0, Endian.little);
var sueLatitude = data_.getInt32(4, Endian.little);
var sueLongitude = data_.getInt32(8, Endian.little);
var sueAltitude = data_.getInt32(12, Endian.little);
var sueWaypointIndex = data_.getUint16(16, Endian.little);
var sueRmat0 = data_.getInt16(18, Endian.little);
var sueRmat1 = data_.getInt16(20, Endian.little);
var sueRmat2 = data_.getInt16(22, Endian.little);
var sueRmat3 = data_.getInt16(24, Endian.little);
var sueRmat4 = data_.getInt16(26, Endian.little);
var sueRmat5 = data_.getInt16(28, Endian.little);
var sueRmat6 = data_.getInt16(30, Endian.little);
var sueRmat7 = data_.getInt16(32, Endian.little);
var sueRmat8 = data_.getInt16(34, Endian.little);
var sueCog = data_.getUint16(36, Endian.little);
var sueSog = data_.getInt16(38, Endian.little);
var sueCpuLoad = data_.getUint16(40, Endian.little);
var sueAirSpeed3dimu = data_.getUint16(42, Endian.little);
var sueEstimatedWind0 = data_.getInt16(44, Endian.little);
var sueEstimatedWind1 = data_.getInt16(46, Endian.little);
var sueEstimatedWind2 = data_.getInt16(48, Endian.little);
var sueMagfieldearth0 = data_.getInt16(50, Endian.little);
var sueMagfieldearth1 = data_.getInt16(52, Endian.little);
var sueMagfieldearth2 = data_.getInt16(54, Endian.little);
var sueSvs = data_.getInt16(56, Endian.little);
var sueHdop = data_.getInt16(58, Endian.little);
var sueStatus = data_.getUint8(60);
return SerialUdbExtraF2A(
sueTime: sueTime,
sueLatitude: sueLatitude,
sueLongitude: sueLongitude,
sueAltitude: sueAltitude,
sueWaypointIndex: sueWaypointIndex,
sueRmat0: sueRmat0,
sueRmat1: sueRmat1,
sueRmat2: sueRmat2,
sueRmat3: sueRmat3,
sueRmat4: sueRmat4,
sueRmat5: sueRmat5,
sueRmat6: sueRmat6,
sueRmat7: sueRmat7,
sueRmat8: sueRmat8,
sueCog: sueCog,
sueSog: sueSog,
sueCpuLoad: sueCpuLoad,
sueAirSpeed3dimu: sueAirSpeed3dimu,
sueEstimatedWind0: sueEstimatedWind0,
sueEstimatedWind1: sueEstimatedWind1,
sueEstimatedWind2: sueEstimatedWind2,
sueMagfieldearth0: sueMagfieldearth0,
sueMagfieldearth1: sueMagfieldearth1,
sueMagfieldearth2: sueMagfieldearth2,
sueSvs: sueSvs,
sueHdop: sueHdop,
sueStatus: sueStatus);
}