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 0:
      return Heartbeat._mavlinkCrcExtra;
    case 300:
      return ProtocolVersion._mavlinkCrcExtra;
    default:
      return -1;
  }
}