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 42000:
      return IcarousHeartbeat._mavlinkCrcExtra;
    case 42001:
      return IcarousKinematicBands._mavlinkCrcExtra;
    default:
      return -1;
  }
}