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

    Class SafetyGate

    The gate every motion command passes through: an e-stop, a watchdog, and limits.

    Index
    • get isStopped(): boolean

      Whether the gate is forcing a stop: its e-stop is engaged or its watchdog expired.

      Returns boolean

    • Returns the command that is safe to drive: a zero twist while stopped, otherwise desired bounded by the limits.

      Parameters

      • desired: Twist
      • dt: number

      Returns Twist

    • Feeds the watchdog; call it whenever a fresh command arrives.

      Returns void