@squawk
    Preparing search index...

    Function computeCrc24

    • Computes the 24-bit Mode-S CRC remainder over an entire message (all bytes, including the trailing 24-bit parity field), via the standard bit-serial polynomial division used to check or recover Mode-S CRCs.

      See ModeSMessageEnvelope.crcRemainder for how to interpret the result - it is a pass/fail check for squitter formats (DF11/17/18) but a recovered ICAO address for surveillance-reply formats.

      Parameters

      • bytes: Uint8Array

        Raw message bytes (7 or 14 bytes), parity field included.

      Returns number

      The 24-bit CRC remainder.