Open
Conversation
in the config set
[z_calibration]
kinematic_offset: true
# Enable kinematic z shift in order to be able to use the gcode_offset
# like it is intended for z height adjustments that can be persisted.
endstop_z_offset: 0
# With kinematic_offset enabled the kinematic coordinate system is no longer
# relative to the z-endstop but to the printer bed.
# That means a macro like:
# [gcode_macro MOVE_TO_Z_TEN]
# gcode:
# G0 Z10
# is suddenly dependent on the bed height. in order to go to the same
# position as without kinematic_offset: true the macro must now be:
# [gcode_macro MOVE_TO_Z_TEN]
# gcode:
# G0 Z{printer["z_calibration"].adjusted_z_endstop + 10}
# ["stepper_z"].endstop_z_offset now plays the role that switch_offset had
# and this config endstop_z_offset is always added to the dynamic
# adjusted_z_endstop variable.
# z limits are adjusted so they stay physically the same although the
# absolute number changes with bed height
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a mode that doesn't use
switch_offsetto hard code the print thickness and instead stores it in["stepper_z"].endstop_z_offset.Calibration results are no longer stored in
GCODE_OFFSETand instead modify the kinematic position directly.The positive effect is that gcode adjustment and saving now works again to change the print thickness.
The negative effect is that the kinematic position is now anchored to the bed position instead of the z_endstop. Which means macros that rely on specific heights might need adjustments.
In the config set