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

    Class Thermostat

    Switches a load on and off around a setpoint, with hysteresis to stop chatter.

    Index
    • Reports the current output without feeding in a reading.

      Returns boolean

    • Feeds a reading in and returns whether the load should be on.

      Parameters

      • reading: number

      Returns boolean

    • Creates a cooling thermostat, which switches on when the reading rises.

      Parameters

      • setpoint: number
      • hysteresis: number

      Returns Thermostat

    • Creates a heating thermostat, which switches on when the reading falls.

      Parameters

      • setpoint: number
      • hysteresis: number

      Returns Thermostat