Hello Guest it is May 23, 2019, 03:24:04 AM

Author Topic: correctly tangential algorithm  (Read 2820 times)

0 Members and 1 Guest are viewing this topic.

correctly tangential algorithm
« on: September 10, 2007, 05:11:15 AM »
G0 Z5.0000
G0 X23561.0000 Y-3530.0000
G1 Z-1.0000 F100.0000
F32.0000
G1 X23564.0000 Y-3120.0000
G1 X23575.0000 Y-2710.0000
G1 X23592.0000 Y-2301.0000
........

i have arccosunus from vectors x and y = I have tangential to the x and y vectors ( between -pi/2  and pi/2)
now maybe some one ( mayby mr Brian Barker) know the math algorithm to generate  correctly tangential ( from ex sinusoids , left or right turning spiral, circle starting from left or right side etc), (mayby mr Brian Barker could make informatin about genearating tangential  from mach3 tangential control fun  ). Thank you Arek
Re: correctly tangential algorithm
« Reply #1 on: September 11, 2007, 10:13:28 PM »
All you need to do is have a look at the vector direction of each move and send that to the A axis to that angle... If the difference from one vector to the other is greater then the max angle we pick up the head and set it back down at the new angle... that is about all there is to it :)

Hope that is what you are looking for
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: correctly tangential algorithm
« Reply #2 on: October 11, 2007, 03:30:36 PM »
Hi Brian sorry for my absence,I'm come back from holidays  a few days ago.
Could You write some example ( exactly how your program calculate correctly A angle  e.g. in spiral)

Thank You
Re: correctly tangential algorithm
« Reply #3 on: October 11, 2007, 03:40:02 PM »
And coud You add mathematics code,

thanks Arek