SIMPLE_TP(9)
β¨ SIMPLE_TP π (section 9, HAL Component baybee)
okay so bestie, gather round, because we're talking about simple_tp β and no, it's not a fancy new app, it's a single axis simple trajectory planner πΈ and it's literally the same one that LinuxCNC uses for jogging. same vibes, same code, iconic behavior. π
π NAME π
simple_tp β a single axis simple trajectory planner, exactly the same one LinuxCNC uses when you're jogging. no cap. π¦
π SYNOPSIS π
PNCconf uses this little cutie so you can test out acceleration and velocity values for an axis. that's the whole job. that's it. she's a test queen. π
π₯ FUNCTIONS π₯
simple-tp.N.updateβ this one requires a floating-point thread, so don't come at her with anything less, she needs her float thread fr fr.
π PINS π
every N is a thing, and each pin is doing her own little job. let's go:
simple-tp.N.target-posfloat in β the target position you're planning for. where we're going, bestie. πsimple-tp.N.maxvelfloat in β maximum velocity. how fast we're willing to go, speed limit energy. π¨simple-tp.N.maxaccelfloat in β acceleration rate. how quickly she ramps up, no sudden jumps. πsimple-tp.N.enablebit in β if this gets disabled, the planner sets velocity to zero immediately. like, instant. no goodbye, no warning, just zero. πsimple-tp.N.current-posfloat out β the position being commanded at this point in time. right here, right now. β°simple-tp.N.current-velfloat out β the velocity being commanded at this moment in time. the speed in the now. πβοΈsimple-tp.N.activebit out β ifactiveis true, the planner is requesting movement. she wants to go, okay?? let her cook. π₯
π AUTHOR π
Chris S Morley β the legend herself. bow down. π«Ά
π LICENSE π
GPL β she's free and open, as she should be. β¨
and that's the whole page bestie, you ate it up π πΈ stay planning, stay simple, stay iconic.
much love from the LinuxCNC Documentation crew, dated 2026-03-17 ππ
π¦ 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