core icon indicating copy to clipboard operation
core copied to clipboard

Add the C axis to polar kinematics

Open konikminavto opened this issue 3 months ago • 5 comments

Hi everyone, and especially terjeio! I recently came across this wonderful project and polar kinematics. In my hardware configuration, the spindle can be rotated (manually) parallel to the X-axis. My idea is to mill sculptural objects or propeller-type objects, but Mastercam requires a rotary axis for this. Can you help me complete the polar kinematics, adding an addition for the C-axis? For example, Mastercam generates code with the same xyz coordinates for each blade, but when changing blades, it adds a rotation of C60.0 to the first command, C120.0 to the second, and so on. Or, when generating a trajectory for a figurine, the output will be x z c.

konikminavto avatar Oct 03 '25 06:10 konikminavto

I have fixed an issue with the polar kinematics, can you try it now? I do not have a machine to test with.

terjeio avatar Oct 04 '25 18:10 terjeio

Thank you very much for your prompt assistance, I can only check on Monday

konikminavto avatar Oct 04 '25 19:10 konikminavto

I tried the changes and don't quite understand how the A-axis should start working instead of the Y-axis. In the config, I changed n_axis to 4. Should I register the same ports as for the Y-axis in the M3 settings in the board configuration?

konikminavto avatar Oct 06 '25 08:10 konikminavto

I tried the changes and don't quite understand how the A-axis should start working instead of the Y-axis. In the config, I changed n_axis to 4. Should I register the same ports as for the Y-axis in the M3 settings in the board configuration?

Sorry, I do not understand this.

terjeio avatar Oct 07 '25 07:10 terjeio

No problem. I can't always formulate my thoughts correctly. :)

konikminavto avatar Oct 07 '25 07:10 konikminavto