parse method

  1. @override
MavlinkMessage? parse(
  1. int messageID,
  2. ByteData data
)
override

Implementation

@override
MavlinkMessage? parse(int messageID, ByteData data) {
  switch (messageID) {
    case 52000:
      return AirlinkAuth.parse(data);
    case 52001:
      return AirlinkAuthResponse.parse(data);
    case 52002:
      return AirlinkEyeGsHolePushRequest.parse(data);
    case 52003:
      return AirlinkEyeGsHolePushResponse.parse(data);
    case 52004:
      return AirlinkEyeHp.parse(data);
    case 52005:
      return AirlinkEyeTurnInit.parse(data);
    default:
      return null;
  }
}