Paciente8159 / uCNC

µCNC - Universal CNC firmware for microcontrollers
https://github.com/Paciente8159/uCNC/wiki
GNU General Public License v3.0
265 stars 60 forks source link

Implement two phase homing cycle with slow second approach #690

Closed patryk3211 closed 1 month ago

patryk3211 commented 1 month ago

As the title says, this pull request implements a two phase homing cycle. The first phase approaches limit switches at the rapid homing feed rate and backs off. The second phase approaches limit switches at homing seek feed rate and then pulls off into the final position. This code is not tested yet, I'll get around to it tomorrow.

patryk3211 commented 1 month ago

After testing the new homing cycle for a while it seems to be performing fine. It also seems to give better accuracy on my machine though this is just based on my observation with no objective measurements.

patryk3211 commented 1 month ago

I just noticed that the homing offset now gets applied twice, fixing it.

patryk3211 commented 1 month ago

Should be fine now, final pull off moves until it no longer contacts the switches (like in the short cycle) and the kinematics moves the axis rest of the way.

Paciente8159 commented 1 month ago

Should be fine now, final pull off moves until it no longer contacts the switches (like in the short cycle) and the kinematics moves the axis rest of the way.

Thanks. I will try to test it and review it tomorrow