crcExtra method

  1. @override
int crcExtra(
  1. int messageID
)
override

Returns CRC Extra of messageID. Returns -1 if unsupported messageID.

Implementation

@override
int crcExtra(int messageID) {
  switch (messageID) {
    case 52000:
      return AirlinkAuth._mavlinkCrcExtra;
    case 52001:
      return AirlinkAuthResponse._mavlinkCrcExtra;
    case 52002:
      return AirlinkEyeGsHolePushRequest._mavlinkCrcExtra;
    case 52003:
      return AirlinkEyeGsHolePushResponse._mavlinkCrcExtra;
    case 52004:
      return AirlinkEyeHp._mavlinkCrcExtra;
    case 52005:
      return AirlinkEyeTurnInit._mavlinkCrcExtra;
    default:
      return -1;
  }
}