AslctrlDebug.parse constructor
AslctrlDebug.parse(
- ByteData data_
Implementation
factory AslctrlDebug.parse(ByteData data_) {
if (data_.lengthInBytes < AslctrlDebug.mavlinkEncodedLength) {
var len = AslctrlDebug.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var i321 = data_.getUint32(0, Endian.little);
var f1 = data_.getFloat32(4, Endian.little);
var f2 = data_.getFloat32(8, Endian.little);
var f3 = data_.getFloat32(12, Endian.little);
var f4 = data_.getFloat32(16, Endian.little);
var f5 = data_.getFloat32(20, Endian.little);
var f6 = data_.getFloat32(24, Endian.little);
var f7 = data_.getFloat32(28, Endian.little);
var f8 = data_.getFloat32(32, Endian.little);
var i81 = data_.getUint8(36);
var i82 = data_.getUint8(37);
return AslctrlDebug(
i321: i321,
f1: f1,
f2: f2,
f3: f3,
f4: f4,
f5: f5,
f6: f6,
f7: f7,
f8: f8,
i81: i81,
i82: i82);
}