feat: load-cell tool detection and latch helpers - #26
Conversation
Add attempts / retries to VERIFY_TOOL_PRESENT
Multi-line {# #} broke Klipper template load.
|
First off, sorry this has been sitting. You've opened a lot of PRs and got nothing back from us for a month, which isn't good enough. I went through all of them today and merged #4, #6, #10, #11, #12, #13, #28 and #33. #6 in particular was a proper bug, thanks for catching that one. This one I want to take, but not as a single PR. There are three separate things in here and they have very different review costs: homing.cfg, the load-cell tool detection helpers, and print_start.cfg. If you can split them I'll take the homing one more or less immediately, it closes #8, which is one of the oldest things in the tracker. It's also better than what I'd have written. Reusing Two things on it though. It depends on The thing I'm least sure about is RESUME. Having INDX own RESUME and asking everyone to hand-patch their mainsail.cfg is a lot to put on users, and it'll generate support traffic every time Mainsail changes that file. Is there a way to get the mid-print presence check without taking the command over? Happy to be told there isn't, but I'd like to rule it out first. Also worth noting the tool detection basically answers #29 as well. |
|
Hi Olof, So essentially I agree with everything you have pointed out in terms of this being rather multi-targeted. I don't actually use this myself anymore, as I have transitioned to a load cell + induction coil voltage detection klippy extra. I will take a look regarding the split, I'm sure it will be possible, but I will need a moment to test as my config has largely diverged from this setup. Re mainsail. Agreed this is a burden. There may be a better way, but I did not find it. Z-offsets: The idea I had with this is:
Charlie |
|
Went through the whole thing properly now, and I want to revise what I said above. Two things worth calling out first. Not raising an error on a mid-print detect failure is exactly right; I hadn't thought about SD printing treating that as a print failure. And What I'd like to take, in order:
On tool detection, I'd like to hold off, and it's worth explaining why rather than just saying no. We've tried presence detection off the load cell in our own testing and couldn't get it consistent. If you want to keep going at it I'd be interested to see it, but I don't want it gating every pickup by default since a false negative mid-print is worse than no detection at all. That also means the RESUME work isn't needed, since owning RESUME only existed to serve the mid-print recheck. Which is a relief since I wasn't keen on a five-step manual edit to everyone's mainsail.cfg being a prerequisite for resume working properly. The T0 question from my last comment still stands on the homing piece. That's the only part I'm genuinely undecided on. |
feat: load-cell tool detection and latch helpers
Summary
Adds
macros/indx-helpers.cfgfor latch helpers and load-cell tool presence.The helpers aid users in recovering from awkward states.
Tool presence detection fixes the fact that the current macros don't maintain correct tool state. They also provide a means to pause / resume printing when a pickup fails, rather than erroring out.
Helpers (in place, alter state):
INDX_LOCK/INDX_UNLOCKINDX_FORCE_STATE ACTIVE_TOOL=<n|-1>- soft-state onlyTool presence:
VERIFY_TOOL_PRESENT- manual seat checkPAUSE, user can runCHANGE_TOOL TOOL=<n>or seat tool by hand, thenRESUMERequires a calibrated
[load_cell_probe](CALIBRATE_LOAD_CELL/CALIBRATE_LOAD_CELL_APPLY).Files
macros/indx-helpers.cfgmacros/indx-tc-macros.cfgInclude order