logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sum2 - Sum of two inputs (each with a gain) and an offset

Author

       Jeff Epler

Functions

sum2.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-06-19                                            SUM2(9)

Name

       sum2 - Sum of two inputs (each with a gain) and an offset

Parameters

sum2.N.gain0 float rw (default: 1.0)
       sum2.N.gain1 float rw (default: 1.0)
       sum2.N.offset float rw

Pins

sum2.N.in0 float in
       sum2.N.in1 float in
       sum2.N.out float out
              out = in0 * gain0 + in1 * gain1 + offset

See Also

scaled_s32_sums(9), weighted_sum(9)

Synopsis

loadrtsum2[count=N|names=name1[,name2...]]

See Also