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

    Class ServoMap

    A hobby servo's pulse widths across its travel.

    Index
    • Creates a map from the pulse at zero degrees, the pulse at full travel, and the travel in degrees, whose magnitude is used.

      Parameters

      • minUs: number
      • maxUs: number
      • rangeDeg: number

      Returns ServoMap

    • get maxUs(): number

      The pulse width at full travel, in microseconds.

      Returns number

    • get minUs(): number

      The pulse width at zero degrees, in microseconds.

      Returns number

    • Returns the angle a pulse width sets, held to the pulse range.

      Parameters

      • pulseUs: number

      Returns number

    • Returns the pulse width for an angle, held to the travel, or 0, no pulse, for an angle that is not a number.

      Parameters

      • angleDeg: number

      Returns number