ChangeOperatorControlAck.parse constructor

ChangeOperatorControlAck.parse(
  1. ByteData data_
)

Implementation

factory ChangeOperatorControlAck.parse(ByteData data_) {
  if (data_.lengthInBytes < ChangeOperatorControlAck.mavlinkEncodedLength) {
    var len =
        ChangeOperatorControlAck.mavlinkEncodedLength - data_.lengthInBytes;
    var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
    data_ = Uint8List.fromList(d).buffer.asByteData();
  }
  var gcsSystemId = data_.getUint8(0);
  var controlRequest = data_.getUint8(1);
  var ack = data_.getUint8(2);

  return ChangeOperatorControlAck(
      gcsSystemId: gcsSystemId, controlRequest: controlRequest, ack: ack);
}