UavionixAdsbTransceiverHealthReport.parse constructor

UavionixAdsbTransceiverHealthReport.parse(
  1. ByteData data_
)

Implementation

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

  return UavionixAdsbTransceiverHealthReport(rfhealth: rfhealth);
}