Add Z clearance step before XY homing in homing override#97
Merged
suchmememanyskill merged 11 commits intomainfrom Apr 7, 2026
Merged
Add Z clearance step before XY homing in homing override#97suchmememanyskill merged 11 commits intomainfrom
suchmememanyskill merged 11 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/bc8c7802-1a67-4a63-8604-ccf3eb6461fd Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add logic to control bed movement based on z position
Add Z clearance step before XY homing in homing override
Apr 6, 2026
suchmememanyskill
requested changes
Apr 6, 2026
Agent-Logs-Url: https://github.com/OpenCentauri/yocto-opencentauri/sessions/0f0b6b25-9374-44dd-9dd1-09ac06c8f4bb Co-authored-by: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com>
✅ Build ArtifactsBranch:
|
Contributor
|
Can't properly test this til tomorrow evening |
Contributor
|
Just tested these changes and it seems to work well.
I think I prefer that to the bed being destroyed though :) This all seems to work whether using |
Atomique13
approved these changes
Apr 7, 2026
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.
When a Z home is requested through the homing override, the printer should establish Z clearance before starting the X/Y homing sequence. This updates the macro so the bed/nozzle is lifted to a safe minimum height first, whether Z is already homed or not.
Homing override behavior
G28request includes Z homing (G28,G28 Z, etc.)Z=8Macro cleanup
FORCE_MOVEvelocity fromsafe_z_feedrate / 60FORCE_MOVEResulting macro path
{% if home_all or 'Z' in params %} {% if 'z' in printer.toolhead.homed_axes %} {% if printer.gcode_move.gcode_position.z|float < safe_z %} G90 G0 Z{safe_z} F{safe_z_feedrate} {% endif %} {% else %} FORCE_MOVE STEPPER=stepper_z DISTANCE={safe_z} VELOCITY={safe_z_feedrate / 60} {% endif %} M400 {% endif %}