pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class CommandProtocol

    Tracks one command awaiting its acknowledgement.

    Wraps the generated class so an unrelated acknowledgement reports null rather than an absent key, matching the rest of this package.

    Index
    • Starts tracking a command.

      Parameters

      • command: number

        The MAV_CMD id being sent.

      • maxRetries: number = MAX_RETRIES

        How many times the command may be resent after a timeout before the caller gives up; defaults to MAX_RETRIES.

      Returns CommandProtocol

    • get confirmation(): number

      The confirmation count to stamp on the command being sent: zero for the first transmission, incremented on each retransmission.

      Returns number

    • Records a timeout and reports whether the command may be resent.

      Returns number | null

      The new confirmation count to stamp on the resend, or null once the retry budget is exhausted.