parse method

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

Implementation

@override
MavlinkMessage? parse(int messageID, ByteData data) {
  switch (messageID) {
    case 42000:
      return IcarousHeartbeat.parse(data);
    case 42001:
      return IcarousKinematicBands.parse(data);
    default:
      return null;
  }
}