Jesper
Dr is the Distance Relative is the motion completed in the accel/decel portion of the move. Da is the distance to accel. One divided by the other cancels the measuring untis, and gives you a percentage. This is what is squared or cubed in the function.
Dr under accel = |Cur Pos - Start Pos|
Dr under decel = |Cur Pos - Decel Point|
Decel Point must be calculated before the move, so you know when to start the decel curve. Say you're starting at position 0, your end point is 10 meters, and you want to decel over 1 meter. 10-1=9 meters becomes the decel point.
Dr is the Distance Relative is the motion completed in the accel/decel portion of the move. Da is the distance to accel. One divided by the other cancels the measuring untis, and gives you a percentage. This is what is squared or cubed in the function.
Dr under accel = |Cur Pos - Start Pos|
Dr under decel = |Cur Pos - Decel Point|
Decel Point must be calculated before the move, so you know when to start the decel curve. Say you're starting at position 0, your end point is 10 meters, and you want to decel over 1 meter. 10-1=9 meters becomes the decel point.