- Posts: 2419
- Thank you received: 2349
LinuxCNC S-Curve Accelerations
- Grotius
- Offline
- Platinum Member
-
Less
More
3 years 6 months ago #268453
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi,
For today, a nice day with some progress.
In the video you can see i am playing with the :
In the gremlin screen, the dtg for xyz are present, also current velocity is present.
The change in adaptive feed, has to react a little faster, i will change that in the code.
inline_github_video
Question :
Where can i retrieve the current adaptive feed value? Is it just one motion.c hal pin?
I don't like to open a new nml channel for this. For now it can be set with a parameter pin.
For today, a nice day with some progress.
In the video you can see i am playing with the :
- adaptive feed
- velocity overide
- max velocity
In the gremlin screen, the dtg for xyz are present, also current velocity is present.
The change in adaptive feed, has to react a little faster, i will change that in the code.
inline_github_video
Question :
Where can i retrieve the current adaptive feed value? Is it just one motion.c hal pin?
I don't like to open a new nml channel for this. For now it can be set with a parameter pin.
The following user(s) said Thank You: tommylight, bkt, wellingtoncsouza, endian, MichalHK, Darium, mehdidadash
Please Log in or Create an account to join the conversation.
- rmu
- Offline
- Elite Member
-
Less
More
- Posts: 279
- Thank you received: 101
3 years 6 months ago #268458
by rmu
Replied by rmu on topic LinuxCNC S-Curve Accelerations
Is it going around corners at full speed?
Please Log in or Create an account to join the conversation.
- zz912
- Offline
- Platinum Member
-
Less
More
- Posts: 596
- Thank you received: 98
3 years 6 months ago #269136
by zz912
Replied by zz912 on topic LinuxCNC S-Curve Accelerations
Hi Grotius,
I wanted to ask if this S-curve project is your private project? Or if you plan to release it to the official LCNC Branch?
If I understood correctly, someone else tried the S-curve first and didn't make it to the end. Then you created a HAL component that allowed you to do S-curve movements and now you're making your own interpreter. It is so?
If you are making a new intepreter and at the same time if you plan to release it, I would like to ask you that your new intepreter allows you to use the python command self.execute("G1 X20 Y20 f50") after the "yield INTERP_EXECUTE_FINISH" command. Namely, to be able to use the command "yield INTERP_EXECUTE_FINISH" several times during Remap, not just once.
forum.linuxcnc.org/38-general-linuxcnc-q...xecute-finish#268975
I understand that no one will probably do this modification in the current Interpreter, but it was a shame to repeat this mistake in the new Interpreter.
I wanted to ask if this S-curve project is your private project? Or if you plan to release it to the official LCNC Branch?
If I understood correctly, someone else tried the S-curve first and didn't make it to the end. Then you created a HAL component that allowed you to do S-curve movements and now you're making your own interpreter. It is so?
If you are making a new intepreter and at the same time if you plan to release it, I would like to ask you that your new intepreter allows you to use the python command self.execute("G1 X20 Y20 f50") after the "yield INTERP_EXECUTE_FINISH" command. Namely, to be able to use the command "yield INTERP_EXECUTE_FINISH" several times during Remap, not just once.
forum.linuxcnc.org/38-general-linuxcnc-q...xecute-finish#268975
- Code following a yield may not recursively call the interpreter, like with self.execute("<mdi command>"). This is an architectural restriction of the interpreter and is not fixable without a major redesign.
I understand that no one will probably do this modification in the current Interpreter, but it was a shame to repeat this mistake in the new Interpreter.
Please Log in or Create an account to join the conversation.
- Beef
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 55
3 years 1 month ago - 3 years 1 month ago #280742
by Beef
Replied by Beef on topic LinuxCNC S-Curve Accelerations
I've read through the entire post history here and it's really impressive both the quality of contribution from the community and also the tenacity of Grotius in solving this problem.
--- Edit
It's taken me a couple of days but I've gotten it to compile and I'm working through getting it up and running to test it out. I have a step-by-step guide that I've been keeping along the way to help me understand how it works, and we'll see if I can refactor this a bit to be easier for others to follow along and more easily improve this in the near future.
--- Edit
It's taken me a couple of days but I've gotten it to compile and I'm working through getting it up and running to test it out. I have a step-by-step guide that I've been keeping along the way to help me understand how it works, and we'll see if I can refactor this a bit to be easier for others to follow along and more easily improve this in the near future.
Last edit: 3 years 1 month ago by Beef.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
3 years 1 month ago #281823
by andypugh
I am curious about the current status.
Replied by andypugh on topic LinuxCNC S-Curve Accelerations
I think that technically he is working on a modified trajectory planner, and probably keeping the existing interpreter.If I understood correctly, someone else tried the S-curve first and didn't make it to the end. Then you created a HAL component that allowed you to do S-curve movements and now you're making your own interpreter. It is so?
I am curious about the current status.
The following user(s) said Thank You: tommylight, zz912, Darium, Beef
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
3 years 4 weeks ago #282143
by Grotius
Replied by Grotius on topic LinuxCNC S-Curve Accelerations
Hi all,
Andy is right. i was working on a modified trajectory planner.
It took me a lot of time to figur things out.
Last year i had it partially working, but i was not satisfied. And i stopped with working on it.
Mayor issue was that lcnc is running out of cyclus time. The different algo's take to much.
@ZZ912,
It's not a private project, code is on github.
@Beef,
How is your project status?
Andy is right. i was working on a modified trajectory planner.
It took me a lot of time to figur things out.
Last year i had it partially working, but i was not satisfied. And i stopped with working on it.
Mayor issue was that lcnc is running out of cyclus time. The different algo's take to much.
@ZZ912,
It's not a private project, code is on github.
@Beef,
How is your project status?
The following user(s) said Thank You: zz912, Darium, Beef
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds