ChangeOperatorControl.parse constructor
ChangeOperatorControl.parse(
- ByteData data_
Implementation
factory ChangeOperatorControl.parse(ByteData data_) {
if (data_.lengthInBytes < ChangeOperatorControl.mavlinkEncodedLength) {
var len =
ChangeOperatorControl.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var targetSystem = data_.getUint8(0);
var controlRequest = data_.getUint8(1);
var version = data_.getUint8(2);
var passkey = MavlinkMessage.asInt8List(data_, 3, 25);
return ChangeOperatorControl(
targetSystem: targetSystem,
controlRequest: controlRequest,
version: version,
passkey: passkey);
}