SerialUdbExtraF4.parse constructor
SerialUdbExtraF4.parse(
- ByteData data_
Implementation
factory SerialUdbExtraF4.parse(ByteData data_) {
if (data_.lengthInBytes < SerialUdbExtraF4.mavlinkEncodedLength) {
var len = SerialUdbExtraF4.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var sueRollStabilizationAilerons = data_.getUint8(0);
var sueRollStabilizationRudder = data_.getUint8(1);
var suePitchStabilization = data_.getUint8(2);
var sueYawStabilizationRudder = data_.getUint8(3);
var sueYawStabilizationAileron = data_.getUint8(4);
var sueAileronNavigation = data_.getUint8(5);
var sueRudderNavigation = data_.getUint8(6);
var sueAltitudeholdStabilized = data_.getUint8(7);
var sueAltitudeholdWaypoint = data_.getUint8(8);
var sueRacingMode = data_.getUint8(9);
return SerialUdbExtraF4(
sueRollStabilizationAilerons: sueRollStabilizationAilerons,
sueRollStabilizationRudder: sueRollStabilizationRudder,
suePitchStabilization: suePitchStabilization,
sueYawStabilizationRudder: sueYawStabilizationRudder,
sueYawStabilizationAileron: sueYawStabilizationAileron,
sueAileronNavigation: sueAileronNavigation,
sueRudderNavigation: sueRudderNavigation,
sueAltitudeholdStabilized: sueAltitudeholdStabilized,
sueAltitudeholdWaypoint: sueAltitudeholdWaypoint,
sueRacingMode: sueRacingMode);
}