-
Notifications
You must be signed in to change notification settings - Fork 66
Add some tool functionality to user space #25
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
base: main
Are you sure you want to change the base?
Conversation
|
Updated the example for the new method |
fd6597f to
5399ec8
Compare
|
this plan might be totally flawed, I didn't know Klipper would only let you rename system macros
so I need to make this macros system versions via the toolchanger.py I suspect which I was trying to avoid. Just putting my notes here as I figure this out, since I'm still new to the Klipper ecosystem |
c224ab2 to
cf47776
Compare
This is fixed with the new example now. I'm going to make a PR on klipper-toolchanger to expose before_change_gcode and after_change_gcode as well to go with this one |
- Add x to possible path values for future dock types - Change so default is always 0 for all paths, to simplify paths - Add DROPOFF/PICKUP START/END macros that can be used with rename to add user code to these calls for LEDS, Runout Sensors, Nozzle cleaning or other tasks
|
Everything is tested and 100% working now. Exactly what I was hoping for, LEDs change properly, I can clean on change now, and once I finish wiring I can add runout sensors for each tool and only check the active tool. This does require the changes to klipper-toolchanger for the before/after_change |
|
Thanks for the PR, overall reasonable changes to merge. Please fix a few nits:
|
I haven't tested all this yet as I'm at work, but I'll test it once I'm home. I wanted to get this PR in incase I was going in the wrong direction you could tell me before I put more time in on it.
This would allow for macro overrides in a user area so we don't mess with toolchanger.cfg and can keep it in sync with git
Example of my vision
Still want to make an other PR after this one to separate the path into 2 pieces, tool_path, dock_path and have the center marker for tool detection auto happen so that f isn't reused and can be used through out the path instead. it'll be really easy to do. I just didn't want to make this PR too large.