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