LinearScaler#

class LinearScaler(gain: float, offset: float, units: str)[source]#

Bases: Scaler

output = raw * gain + offset.

Attributes

units

Physical units of the scaled output (e.g. "V", "degC", "psi").

Methods

scale

Convert a raw DAQ reading to a physical value in units.