AirlinkEyeHp.parse constructor

AirlinkEyeHp.parse(
  1. ByteData data_
)

Implementation

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

  return AirlinkEyeHp(respType: respType);
}