DDT(9)
β¨ DDT(9) β the HAL Component that's literally just vibing with derivatives π
okay bestie, so this is a HAL component manual page, and we're talking about ddt β she computes the derivative of the input function, and honestly? iconic. π¦
πΈ NAME πΈ
ddt β Compute the derivative of the input function. that's it, that's the whole job, and she does it flawlessly. periodt. π
π SYNOPSIS π
loadrt ddt [count=N|names=name1[,name2...]]
π DESCRIPTION π
ok so listen. every single time the real time thread calls a function, ddt does the math:
it takes the difference between the old and the current input value, and divides that by the timer elapsed since the last call.
that's the derivative, babes. rate of change. slope of the line. no cap. π₯
β FUNCTIONS β
ddt.Nβ hiii she requires a floating-point thread, just so you know π
π§ PINS π§
ddt.N.infloat in β the input, bestie, feed her numbers πddt.N.outfloat out β the output, aka the derivative itself, go off π
π NOTES π
ngl this is important, so read it fr fr.
because this only works on two consecutive input values, it's only gonna work well if the input changes every function call.
it will not work so well if the rate of change is very low and the input doesn't change every time the real time function is called. like, it's giving stale data energy. π
π«Ά AUTHOR π«Ά
Jeff Epler
π LICENSE π
GPL
okay that's the whole page, you're so welcome π this was pulled straight from the LinuxCNC Documentation, dated 2026-03-17, and the manual is called DDT(9). mwah, go compute some derivatives cutie πβ¨
π¦ 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