ArmoredTurtle / AFC-Klipper-Add-On

Automated Filament Changer Software
GNU General Public License v3.0
31 stars 14 forks source link

Change tool recovery #59

Closed ammmze closed 1 month ago

ammmze commented 1 month ago

These changes should help with less than ideal tool changes. In particular, I am testing on a setup without a cutter, so it relies on tip forming. The primary issue with tip forming is that the tips are inconsistent due to differences in temp, material, and whether you are looking at your printer funny. Because tips are inconsistent, it makes tool changes less reliable. These changes help with that in a few ways:

  1. Configurable park distance so that you can have the filament parked further behind the hub (I'm using 30mm, but defaulting to 10mm for now).
  2. Ensure the print is paused when something unexpected happens during a tool change.
  3. Save the position of the toolhead (most important the Z position) at the start of the tool change and provide a way to restore that position when resuming. This requires the user updates the RESUME macro to call RESTORE_CHANGE_TOOL_POS.

With these changes I've successfully been able to do a test print doing 10 swaps and when it inevitably fails to do a tool change, I was able to recover and resume successfully.