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

knob2float - Convert counts (probably from an encoder) to a float value

Author

       John Kasunich

Functions

knob2float.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-08-07                                      KNOB2FLOAT(9)

Name

       knob2float - Convert counts (probably from an encoder) to a float value

Parameters

knob2float.N.max-out float rw (default: 1.0)
              Maximum output value, further increases in count will be ignored

       knob2float.N.min-out float rw (default: 0.0)
              Minimum output value, further decreases in count will be ignored

Pins

knob2float.N.counts s32 in
              Counts

       knob2float.N.enable bit in
              When TRUE, output is controlled by count, when FALSE, output is fixed

       knob2float.N.scale float in
              Amount of output change per count

       knob2float.N.out float out
              Output value

Synopsis

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

See Also