New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
z_endstop_set_calibration: Calibrate endstop based on current position #4670
z_endstop_set_calibration: Calibrate endstop based on current position #4670
Conversation
Add new module which allows to calibrate the z-axis endstop position based on the current position. This can be used with load cell-based or accelerometer-based probes, as discussed in Klipper3d#3496. Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
Thanks. What functionality does this provide over the new Z_OFFSET_APPLY_ENDSTOP command? That is, could a user interested in this functionality implement it via a macro and Z_OFFSET_APPLY_ENDSTOP? -Kevin |
Honestly, I wasn't aware of the new Can I use this without the manual_probe? Or do I need to move it into a separate module for this? |
The manual_probe module is automatically loaded - its commands are always available. -Kevin |
I see now one difference: I tried setting the homing_origin from a gcode macro, like this:
but this results in a syntax error... Is there any other way to achieve this without code change? If not, I see two choices:
My feeling is, the first approach (extend |
Well, you don't want to use the current position though, because with the latest code it is possible to overshoot slightly during a probe attempt. Best is to extract the probe position as reported by Setting the Z offset should be possible with something like: -Kevin |
Ok I understand. My probe algorithm currently moves to the determined Z=0 position to avoid this kind of overshoot. This is useful, as in some situations one can then use Now it should also set (The load-cell probe does not have any offsets, so this shall work without issues.) |
Ok, it works, but not as easy as I thought:
So my macro looks like this now:
I think this is acceptable, hence I close this PR (and prepare the next one ;-)). |
Add new module which allows to calibrate the z-axis endstop position
based on the current position. This can be used with load cell-based
or accelerometer-based probes, as discussed in #3496.