blob: b539e0a427e253a318630d73587ccdb8eaa065de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
component scale "LinuxCNC HAL component that applies a scale and offset to its input";
pin in float in;
pin in float gain;
pin in float offset;
pin out float out "out = in * gain + offset";
function _;
license "GPL";
author "Jeff Epler";
;;
FUNCTION(_) {
out = in * gain + offset;
}
|