speed control algorithm of linuxcnc

More
16 May 2023 11:55 #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 or Create an account to join the conversation.

More
16 May 2023 13:09 #271456 by rmu
The following user(s) said Thank You: szl

Please Log in or Create an account to join the conversation.

More
22 May 2023 08:48 #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!

Please Log in or Create an account to join the conversation.

More
22 May 2023 13:53 #271933 by andypugh
Replied by andypugh on topic speed control algorithm of linuxcnc
There is a video presentation here:
The following user(s) said Thank You: snowgoer540

Please Log in or Create an account to join the conversation.

More
26 May 2023 11:17 - 26 May 2023 11:21 #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. 
Attachments:
Last edit: 26 May 2023 11:21 by rmu.
The following user(s) said Thank You: Aciera, szl

Please Log in or Create an account to join the conversation.

More
18 Jul 2023 10:36 #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.
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Jul 2023 14:01 #275738 by rmu
Replied by rmu 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.

Is this a question? github doesn't find tpCalculateQvpAccel, what branch are you on?

Please Log in or Create an account to join the conversation.

More
19 Jul 2023 01:01 #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.

Please Log in or Create an account to join the conversation.

More
19 Jul 2023 09:05 - 19 Jul 2023 09:06 #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.
Last edit: 19 Jul 2023 09:06 by rmu.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum