How to auto-zero the z-axis using a high-precision distance sensor?

Ah. I haven’t dealt with many bit changes yet. But it seems to me that calibrating once when you change the bit and then having a “perfect” z-axis until you change the bit again is vastly preferable. I mean, it makes sense to me to calibrate when I change bits, and I’ve got my hands in there anyways. The problem I’m trying to solve for is the 99% of the rest of the time when I want a perfect z-axis without any fear of slippage or drift. This is a big problem on the Rigid btw… I’ve mostly fixed it but I still get a mm of drift or so per 30-60m.

Plus, this solution isn’t mutually exclusive to the touchplate. The secondary small Arduino running the zeroer could automatically find zero using this exact technique during the bit change, updating its constant offset value for the sensor distance… best of both worlds, no?