DEADZONE(9)
β¨ DEADZONE β¨
okay so bestie, welcome to deadzone β a HAL component, and honestly? it's giving "tiny but mighty." π
here's the whole entire vibe in one line: Return the center if within the threshold. that's it. that's the job. she's a bouncer for a little zone in the middle of your signal, and if you're inside the zone she hands you the center. no cap. π
πΈ SYNOPSIS πΈ
loadrt deadzone [count=N|names=name1[,name2...]]
load it into your HAL setup like that, and you can spin up however many copies you want with count=N, or give them cute little names with names=name1[,name2...]. multiple names? comma-separate them, babe. π
π¦ FUNCTIONS π¦
deadzone.Nβ requires a floating-point thread, so like, she will NOT run on an integer thread, no ma'am π ββοΈ. what does she do? she updatesoutbased oninand the parameters. that's the function. read the pins, do the math, write the pin. iconic behavior fr fr.
ngl the.Nbit means each instance gets its own number, sodeadzone.0,deadzone.1, etc. β one function per copy, obviously. β¨
π PINS π
deadzone.N.inβ typefloat, directionin. this is the signal you're feeding in, bestie. π«Άdeadzone.N.outβ typefloat, directionout. this is what she gives back to you after the vibe check. π
π PARAMETERS π
deadzone.N.centerβfloat,rw, default:0.0. The center of the dead zone. this is the spot she'll hand back to you when you're inside the zone. lowkey the main character of this whole component. πdeadzone.N.thresholdβfloat,rw, default:1.0. The dead zone iscenter Β± (threshold/2). so like, read that carefully β it's threshold divided by two, on EACH side. so a threshold of1.0around a center of0.0means anything from-0.5to0.5is getting the center treatment. not me almost getting that backwards the first time π
both of these are rw, so yes, you can change them at runtime. live your truth. π
π AUTHOR π
Jeff Epler wrote this one. give her a little respect, she's the whole reason this component exists. π
π LICENSE π
GPL β that's the license, keep it in mind if you're redistributing, bestie. π
and that's the whole page, no crumbs. π this was the DEADZONE(9) HAL Component man page out of the LinuxCNC Documentation, dated 2026-03-17 β so if you ever need to cite your source, there it is. mwah, go forth and slay your dead zones. πβ¨
π¦ 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