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

    Class CommandProtocol

    Tracks one command awaiting its acknowledgement.

    Index
    • Starts tracking a command.

      Parameters

      • command: number

        The MAV_CMD id being sent.

      • OptionalmaxRetries: number | null

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

      Returns CommandProtocol

    • get command(): number

      The command id being tracked.

      Returns number

    • 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.