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

    Class QuadratureScale

    Turns encoder steps into the distance and speed of the wheel they turn with.

    Index
    • Creates a scale from the steps per wheel revolution and the wheel radius in meters; each magnitude is used.

      Parameters

      • countsPerRev: number
      • wheelRadius: number

      Returns QuadratureScale

    • Returns the distance, in meters, a wheel rolled for a step count.

      Parameters

      • count: number

      Returns number

    • Returns the speed, in meters per second, from the steps counted over dt, or 0 when dt is 0.

      Parameters

      • deltaCount: number
      • dt: number

      Returns number