- Posts: 4
- Thank you received: 0
Question about acceleration and deceleration of linuxCNC linear movement
3 years 1 month ago #279807
by lqb
Hello, everyone.
In the "tpUpdateCycle" function in the "tp.c" file, the calculation of the acceleration phase is done with the "tpCalculateRampAccel" function and the "tpUpdateDistFromAccel" function, but I can't see where the calculation of the deceleration phase is done.
In the "tpUpdateCycle" function in the "tp.c" file, the calculation of the acceleration phase is done with the "tpCalculateRampAccel" function and the "tpUpdateDistFromAccel" function, but I can't see where the calculation of the deceleration phase is done.
Please Log in to join the conversation.
3 years 1 month ago #279812
by lqb
Replied by lqb on topic Question about acceleration and deceleration of linuxCNC linear movement
Sorry, I looked into the function "tcUpdateDistFromAccel" again, and when a line segment is added and the final velocity of the segment is 0, it should be a decelerated displacement.
This seems to mean that I have to add three displacements to do acceleration, uniform velocity and deceleration
This seems to mean that I have to add three displacements to do acceleration, uniform velocity and deceleration
Please Log in to join the conversation.
3 years 1 month ago #279917
by rodw
Replied by rodw on topic Question about acceleration and deceleration of linuxCNC linear movement
Correct, Linuxcnc accellerates at max velocity until it reaches requested velocity, then decellerates at the same rate to get to the end point accelleration. If you graph this in halscope, you will see the classic trapezoid.
There are a few other factors that come into play regarding segment length and the look ahead to the next segment in the real world.
There are a few other factors that come into play regarding segment length and the look ahead to the next segment in the real world.
Please Log in to join the conversation.
Time to create page: 0.083 seconds
