Skip to content

Añadir extras de resonance_test y zmax_homing#6973

Open
microlay wants to merge 6 commits intoKlipper3d:masterfrom
microlay:master
Open

Añadir extras de resonance_test y zmax_homing#6973
microlay wants to merge 6 commits intoKlipper3d:masterfrom
microlay:master

Conversation

@microlay
Copy link

@microlay microlay commented Jul 2, 2025

No description provided.

@Sineos
Copy link
Collaborator

Sineos commented Jul 5, 2025

Thanks for the contribution.
Please cross-check against https://github.com/Klipper3d/klipper/blob/master/docs/CONTRIBUTING.md. In particular:

  • Description / Goal of the PR
  • Signed-off line
  • English language, e.g. title, code comments etc.

@github-actions
Copy link

Thank you for your contribution to Klipper. Unfortunately, a reviewer has not assigned themselves to this GitHub Pull Request. All Pull Requests are reviewed before merging, and a reviewer will need to volunteer. Further information is available at: https://www.klipper3d.org/CONTRIBUTING.html

There are some steps that you can take now:

  1. Perform a self-review of your Pull Request by following the steps at: https://www.klipper3d.org/CONTRIBUTING.html#what-to-expect-in-a-review
    If you have completed a self-review, be sure to state the results of that self-review explicitly in the Pull Request comments. A reviewer is more likely to participate if the bulk of a review has already been completed.
  2. Consider opening a topic on the Klipper Discourse server to discuss this work. The Discourse server is a good place to discuss development ideas and to engage users interested in testing. Reviewers are more likely to prioritize Pull Requests with an active community of users.
  3. Consider helping out reviewers by reviewing other Klipper Pull Requests. Taking the time to perform a careful and detailed review of others work is appreciated. Regular contributors are more likely to prioritize the contributions of other regular contributors.

Unfortunately, if a reviewer does not assign themselves to this GitHub Pull Request then it will be automatically closed. If this happens, then it is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available.

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

microlay and others added 3 commits November 28, 2025 17:47
Features:
- New Z_CALIBRATE command that performs full Z-axis calibration:
  1. Executes G28 Z (home to Zmin endstop)
  2. Probes upward to find Zmax using Y endstop (SKR3 hardware workaround)
  3. Reports actual travel distance vs configured position_max
  4. Auto-updates both NanoDLP ZLength and Klipper position_max if diff > 0.5mm
  5. Automatically restarts Klipper to load new configuration

Technical changes:
- Fixed YEndstopWrapper to return Z steppers instead of Y steppers
  This allows probing_move() to correctly track Z-axis movement
  while using Y endstop for trigger detection
- Temporarily expands Z limits during calibration to allow full travel
- Updates NanoDLP machine.json CustomValues.ZLength directly (JSON modification)
- Updates Klipper printer.cfg position_max via regex replacement

Usage:
  Z_CALIBRATE                    # Use default speed
  Z_CALIBRATE SPEED=5            # Custom probe speed (mm/s)
  Z_CALIBRATE MAX_TRAVEL=200     # Custom max travel distance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Create /tmp/homing_obstacle_flag when timeout occurs (no trigger)
- Expand Z limits temporarily to allow full travel during homing
- Add gcode_shell_command.py for shell command execution
- Add obstacle_detector.py Klipper module

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants