Currently I'm trying to improve the accuracy of the probing of my cnc machine running on the grbl firmware. In order to do this I want to implement backlash compensation using software since I'm streaming the Gcode to the controller by using Pyserial. However, I'm pretty sure that grbl does not offer backlash compensation with built-in features. My solution to this was to try to detect when the machine changes directions for a certain axis and then let the machine move by the backlash distance first and only then resuming with the next command. During the backlash compensation move I would like the machine coordinate system not to change since this is what the probing commands use as a reference. However, I have not figured out how to do this yet. Any suggestions would be very welcome.