viesturz / klipper-toolchanger

Toolcahnging extension for Klipper
GNU General Public License v3.0
72 stars 22 forks source link

Fixing probing of X axis on IDEX machines #23

Closed russiancatfood closed 5 months ago

russiancatfood commented 5 months ago

Due to how Klipper handles steppers on an IDEX machine, we were getting errors when probing in X axis.

After toolhead finishes its move and hits the probe condition, Klipper does a check to see if steppers actually spun during probing (check_no_movement function). If any of the steppers didn't move, it throws a "Probe triggered prior to movement" error. Problem is on an IDEX system one of the steppers (the inactive carriage) will stay put and not move.

To address this, we have to check if we're on an IDEX rig, and for 'x' axis, only return steppers from a primary rail.

seacred commented 5 months ago

Tested. Works on Hybrid Core-XY Tridex.