viesturz / klipper-toolchanger

Toolcahnging extension for Klipper
GNU General Public License v3.0
49 stars 16 forks source link

Allow tool offsets to be exported to Gcode macro variables for IDEX use #26

Closed russiancatfood closed 1 month ago

russiancatfood commented 1 month ago

Due to the nature of most IDEX setups in Klipper, the toolhead offsets are governed by Gcode macros. In the case of VORON Tridex and VORON Phoenix, this macro is called DC_VARS.

This allows idex setups like these to use the tool offsets generated by the tools_calibrate natively without hacking string output of calibration command.

Took this opportunity to update the tools_calibrate docs to reflect reality, and added a sample config for IDEX setup (Phoenix in this case)

russiancatfood commented 1 month ago

I realize a lot of this stuff is irrelevant to tool changer use (your primary focus) but tools calibrate module is a work of art and forking it for the sake of adapting it to IDEX seems silly.

I've attempted to minimize conflicts with code's primary use (Toolchanger) as much as possible but sadly don't have a machine to test this on.

russiancatfood commented 1 month ago

Just saw a PR asking for the same thing basically. I'm gonna close this, nuke my changes and re-submit just the doc updates