LinuxCNC S-Curve Accelerations
- grandixximo
-
Topic Author
- Offline
- Premium Member
-
- Posts: 151
- Thank you received: 247
The biggest changes we made you have them now in master, not sure how my implementation can help, and it is not in the scope of the OP.
Please Log in or Create an account to join the conversation.
- Becksvill
- Offline
- Elite Member
-
- Posts: 197
- Thank you received: 96
Just once again thanks for everything.
I'll go back to watching and hoping you guys get this running nicely
Cheers andrew
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4661
- Thank you received: 2078
Generally, how important is constant velocity along the toolpath for your applications?
Please Log in or Create an account to join the conversation.
- grandixximo
-
Topic Author
- Offline
- Premium Member
-
- Posts: 151
- Thank you received: 247
Please Log in or Create an account to join the conversation.
- grandixximo
-
Topic Author
- Offline
- Premium Member
-
- Posts: 151
- Thank you received: 247
This is phase 0 completed, according to my plan, this is extremely experimental work in progress, there are known issues at the moment, no arcs no blends, no scurve, as illustrated by the plan you can find at this post, which I got not much feedback..
forum.linuxcnc.org/38-general-linuxcnc-q...ons?start=640#341856
Next phase it is IMO too hard to be vibe coded, but I will try in my spare time.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4661
- Thank you received: 2078
which I got not much feedback..
Just as a word of caution from my own experience:
You mustn't expect to much from a forum thread like this. Few people will even read a post that long, fewer still look at the code and hardly anybody will even try to understand it. I know of at least one long time contributor, since retired, who got quite bitter about trying to get sustained and involved feedback here. Even from the very people asking for the specific feature.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4661
- Thank you received: 2078
According to this statement (which I have not verified )the 'ruckig' library is not free for more advanced uses. (Not that this must necessarily be a deal breaker):
forum.linuxcnc.org/38-general-linuxcnc-q...nner?start=70#320906
[edit]
there seems to be a ''community" and a "pro" version of ruckig:
docs.ruckig.com/md_pages_2__intermediate__waypoints.html
There seems to be little information about the 'pro' version:
github.com/pantor/ruckig/issues/78
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4661
- Thank you received: 2078
Could you give a bit more background information as to how you came up with these outlines? In other words: Are these the result of conscious deliberation or is that a product of AI?
### Architecture Principles
**RT thread (250µs capable):** Only evaluates pre-computed polynomials. No planning, no Ruckig, no kinematics. Just `position = evaluate_polynomial(t)` and send to drives.
**Userspace:** All heavy computation. Ruckig, backward velocity pass, kinematics, blending. Not tied to servo cycle.
**Predictive Handoff:** When replanning is needed (feed override, etc), userspace plans from a predicted future state, not current state. RT continues executing until the handoff time, then seamlessly transitions. This decouples userspace latency from RT determinism.
**Buffer Management:** Track buffer in TIME, not segment count. Short segments and long segments treated appropriately.
Please Log in or Create an account to join the conversation.
- grandixximo
-
Topic Author
- Offline
- Premium Member
-
- Posts: 151
- Thank you received: 247
I proposed a minimum of 250us because that's what other users here expressed, otherwise you could run ruckig in the servo, but I thought better keep it out, even if advertised as 50us, some calculations seems known to exceed this advertisement. The handoff was my concept idea. Inspired by how CPU have predictive branching
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4661
- Thank you received: 2078
I certainly like the structured approach of your initiative, that is something that has been sorely lacking in other attempts.
I think/hope that Rob will be able to give an educated opinion on it and help shape it into a concrete roadmap.
Note that Mitsubishi SSCNET requires a servo cycle <= 222us
forum.linuxcnc.org/9-installing-linuxcnc...cnet?start=70#256576
Please Log in or Create an account to join the conversation.