Debug.parse constructor
Debug.parse(
- ByteData data_
Implementation
factory Debug.parse(ByteData data_) {
if (data_.lengthInBytes < Debug.mavlinkEncodedLength) {
var len = Debug.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var timeBootMs = data_.getUint32(0, Endian.little);
var value = data_.getFloat32(4, Endian.little);
var ind = data_.getUint8(8);
return Debug(timeBootMs: timeBootMs, value: value, ind: ind);
}