Klicky-Probe icon indicating copy to clipboard operation
Klicky-Probe copied to clipboard

Remove integer truncation from various positions

Open jagerman opened this issue 2 years ago • 0 comments

Fixes #159.

This replaces the |int truncation of position and motion handling in the klipper macros with |floats so that fractional positions work.

Without this my docking would usually fail because, with my optimal position being about half a mm away from an integer, I had frequent docking failures where the probe would hit the edge of the dock.

It also simplifies the code to do the conversion-to-float just once for each variable (which I see was also quite correctly advised in #159), rather than having many |ints scattered everywhere the variables are used.

jagerman avatar Jul 09 '23 16:07 jagerman