- Posts: 14
- Thank you received: 0
speed control algorithm of linuxcnc
3 years 5 months ago #271451
by szl
speed control algorithm of linuxcnc was created 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
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.
3 years 5 months ago #271456
by rmu
Replied by rmu on topic speed control algorithm of linuxcnc
Please Log in to join the conversation.
3 years 5 months ago #271907
by szl
Replied by szl on topic speed control algorithm of linuxcnc
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!
I look forward to hearing from you, thanks again!
Please Log in to join the conversation.
3 years 5 months ago #271933
by andypugh
Replied by andypugh on topic speed control algorithm of linuxcnc
There is a video presentation here:
Please Log in to join the conversation.
3 years 5 months ago #272206
by rmu
Replied by rmu on topic speed control algorithm of linuxcnc
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.
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.
3 years 3 months ago #275727
by szl
Replied by szl on topic speed control algorithm of linuxcnc
I get the warning on the picture after compiling the source code with debian12.
It compiles successfully with debian11 on a VMware Workstation.
It compiles successfully with debian11 on a VMware Workstation.
Please Log in to join the conversation.
3 years 3 months ago #275738
by rmu
Replied by rmu on topic speed control algorithm of linuxcnc
Is this a question? github doesn't find tpCalculateQvpAccel, what branch are you on?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.
3 years 3 months ago #275779
by szl
Replied by szl on topic speed control algorithm of linuxcnc
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.
I'm trying to use it on my machine, but there's always something wrong with it.
Please Log in to join the conversation.
3 years 3 months ago #275803
by rmu
Replied by rmu on topic speed control algorithm of linuxcnc
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.
| 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
