DEADZONE(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 updates out based on in and the parameters. that's the function. read the pins, do the math, write the pin. iconic behavior fr fr.
ngl the .N bit means each instance gets its own number, so deadzone.0, deadzone.1, etc. β€” one function per copy, obviously. ✨

πŸ’œ PINS πŸ’œ

  • deadzone.N.in β€” type float, direction in. this is the signal you're feeding in, bestie. 🫢
  • deadzone.N.out β€” type float, direction out. 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 is center Β± (threshold/2). so like, read that carefully β€” it's threshold divided by two, on EACH side. so a threshold of 1.0 around a center of 0.0 means anything from -0.5 to 0.5 is 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