Y_Tilt (repurpose Z_Tilt to square a large gantry)

Hi,

I have a large format cartesian printer with separate Y motors driving each side of a gantry. Klipper automatically slaves them together using stepper_y, and stepper_y1, and my endstop is only defined for stepper_y. This is working just fine. For the most part the gantry stays square when the stepper motors are not powered via M84 etc.

I would like to create a function “Y_Tilt” which does exactly what Z_Tilt does except for the Y axis. I would add another endstop on the other side of the gantry associated with stepper_y1.

Is there a good way to write a macro to do this, or will it require rewriting z_tilt?

Thanks!

Curious if there is actually a separate controller channel for each Z stepper, or if they are essentially wired in parallel, such that the single Z command signal goes to both steppers simultaneously. Seems likely. Maybe trace the wires and verify. If the signal is split from one output to both steppers, then I don’t think your plan to independently control them can work.
I’d be interested in how you end up resolving this.