/ src / hal / components / scale.comp
scale.comp
 1  component scale "LinuxCNC HAL component that applies a scale and offset to its input";
 2  pin in float in;
 3  pin in float gain;
 4  pin in float offset;
 5  pin out float out "out = in * gain + offset";
 6  function _;
 7  license "GPL";
 8  ;;
 9  FUNCTION(_) {
10      out = in * gain + offset;
11  }