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.
Fixes #159.
This replaces the
|int
truncation of position and motion handling in the klipper macros with|float
s 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
|int
s scattered everywhere the variables are used.