DDT(9)

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

✨ 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.in float in β€” the input, bestie, feed her numbers πŸ“
  • ddt.N.out float 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