OFFSET(9)
π OFFSET(9) π β the HAL Component that's literally just vibes and arithmetic
ok so bestie, welcome to the HAL Component page for offset, and no cap, this one is a little cutie. π
β¨ NAME β¨
offset β it adds an offset to an input, and then subtracts that same offset from the feedback value. That's it. That's the whole personality. π¦
β¨ SYNOPSIS β¨
loadrt offset [count=N|names=name1[,name2...]]
load it up, and you can either say how many you want with count=N or name your babies individually with names=name1[,name2...]. your call, queen. π
β¨ FUNCTIONS β¨
offset.N.update-output(requires a floating-point thread) β this one updates the output value by adding the offset to the input. it's giving "math but make it glam". β¨offset.N.update-feedback(requires a floating-point thread) β and this one updates the feedback value by subtracting the offset from the feedback. symmetry, bestie. we love to see it. π
lowkey important: both of these need a floating-point thread. not a regular one. a floating-point one. don't skip that detail fr fr. π
β¨ PINS β¨
offset.N.offsetfloat in β the offset value itself. the main character of the whole operation. πoffset.N.infloat in β the input value. goes in. π«Άoffset.N.outfloat out β the output value. comes out, offset already added. slay.offset.N.fb-infloat in β the feedback input value. πΈoffset.N.fb-outfloat out β the feedback output value, offset already subtracted. iconic.
β¨ AUTHOR β¨
Jeff Epler β shoutout to the legend, thank you for your service. π
β¨ LICENSE β¨
GPL β use it, share it, respect it. periodt. π
π cute lil sign-off π
that's the whole page bestie, and it came to you courtesy of the LinuxCNC Documentation squad, dated 2026-03-17. go forth and offset responsibly. π§π
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms