speed control algorithm of linuxcnc

More
3 years 5 months ago #271451 by szl
Hello everone,
              if I want to modify the internal speed planning algorithm of linuxcnc, which file contents should I go and modify.
PS: I am new to linuxcnc, please be more detailed, thank you all


szl

Please Log in to join the conversation.

More
3 years 5 months ago #271456 by rmu

Please Log in to join the conversation.

More
3 years 5 months ago #271907 by szl
Sorry to bother you, but is there any description, video or other material on the internal speed control algorithm of linuxcnc? (I've seen your previous implementation of speed control using Bezier curves and would like to learn about it, the algorithm itself is relatively simple, but not when combined with linuxcnc.
I look forward to hearing from you, thanks again!

Please Log in to join the conversation.

More
3 years 5 months ago #271933 by andypugh
There is a video presentation here:

Please Log in to join the conversation.

More
3 years 5 months ago #272206 by rmu
The "speed control" is here github.com/LinuxCNC/linuxcnc/blob/master/src/emc/tp/tp.c#L2385 but it really is only a small part of the story.

Jogging is handled here github.com/LinuxCNC/linuxcnc/blob/master...c/motion/simple_tp.c / .h

I attached a sagemath notebook if you want to play around with the bezier stuff. 

Please Log in to join the conversation.

More
3 years 3 months ago #275727 by szl
I get the warning on the picture after compiling the source code with debian12.
It compiles successfully with debian11 on a VMware Workstation.

Please Log in to join the conversation.

More
3 years 3 months ago #275738 by rmu

I get the warning on the picture after compiling the source code with debian12.
It compiles successfully with debian11 on a VMware Workstation.
Is this a question? github doesn't find tpCalculateQvpAccel, what branch are you on?

Please Log in to join the conversation.

More
3 years 3 months ago #275779 by szl
I compiled the Bezier interpolation you wrote earlier.
I'm trying to use it on my machine, but there's always something wrong with it.

Please Log in to join the conversation.

More
3 years 3 months ago #275803 by rmu
I completely forgot I renamed those functions. The warnings should not prevent compilation.

| instead of || is a typo, that should be fixed but only affects a debug printf.

The code is unfinished and has some problems, but it should compile.

Please Log in to join the conversation.

Time to create page: 0.437 seconds
Powered by Kunena Forum