Hwstatus.parse constructor
Hwstatus.parse(
- ByteData data_
Implementation
factory Hwstatus.parse(ByteData data_) {
if (data_.lengthInBytes < Hwstatus.mavlinkEncodedLength) {
var len = Hwstatus.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var vcc = data_.getUint16(0, Endian.little);
var i2cerr = data_.getUint8(2);
return Hwstatus(vcc: vcc, i2cerr: i2cerr);
}