AslObctrl.parse constructor
AslObctrl.parse(
- ByteData data_
Implementation
factory AslObctrl.parse(ByteData data_) {
if (data_.lengthInBytes < AslObctrl.mavlinkEncodedLength) {
var len = AslObctrl.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var timestamp = data_.getUint64(0, Endian.little);
var uelev = data_.getFloat32(8, Endian.little);
var uthrot = data_.getFloat32(12, Endian.little);
var uthrot2 = data_.getFloat32(16, Endian.little);
var uaill = data_.getFloat32(20, Endian.little);
var uailr = data_.getFloat32(24, Endian.little);
var urud = data_.getFloat32(28, Endian.little);
var obctrlStatus = data_.getUint8(32);
return AslObctrl(
timestamp: timestamp,
uelev: uelev,
uthrot: uthrot,
uthrot2: uthrot2,
uaill: uaill,
uailr: uailr,
urud: urud,
obctrlStatus: obctrlStatus);
}