blob: 1517ce9b5ae29e270a06e67860cc19c3f6ae6204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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";
;;
FUNCTION(_) {
out = in * gain + offset;
}
|