SerialUdbExtraF19.parse constructor
SerialUdbExtraF19.parse(
- ByteData data_
Implementation
factory SerialUdbExtraF19.parse(ByteData data_) {
if (data_.lengthInBytes < SerialUdbExtraF19.mavlinkEncodedLength) {
var len = SerialUdbExtraF19.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var sueAileronOutputChannel = data_.getUint8(0);
var sueAileronReversed = data_.getUint8(1);
var sueElevatorOutputChannel = data_.getUint8(2);
var sueElevatorReversed = data_.getUint8(3);
var sueThrottleOutputChannel = data_.getUint8(4);
var sueThrottleReversed = data_.getUint8(5);
var sueRudderOutputChannel = data_.getUint8(6);
var sueRudderReversed = data_.getUint8(7);
return SerialUdbExtraF19(
sueAileronOutputChannel: sueAileronOutputChannel,
sueAileronReversed: sueAileronReversed,
sueElevatorOutputChannel: sueElevatorOutputChannel,
sueElevatorReversed: sueElevatorReversed,
sueThrottleOutputChannel: sueThrottleOutputChannel,
sueThrottleReversed: sueThrottleReversed,
sueRudderOutputChannel: sueRudderOutputChannel,
sueRudderReversed: sueRudderReversed);
}