On Fri, 4 Feb 2022 at 21:27, andy pugh <bodge...@gmail.com> wrote: > (Incidentally, part of the reason that the preview and motion differ > is because motion is in metric and preview is in imperial! At least > with a metric config and metric G-code. I will need to test the 4 > combinations)
More digging.... I have found that units in gcodemodule are consistently inches (:-( Whereas in _posemath the units match the config base units (which surprises me, I thought that LinuxCNC was internally metric, but it seems to be internally agnostic) (:-(( This means that the interpretation of CART_FUZZ in posemath depends on the configuration units. Having reconfigured both posemath and gcodemodule to use CART_FUZZ rather than CIRCLE_FUZZ to decide when an arc is small enough that a complete circle was intended, this could lead to inconsistency between preview and motion. (We had that anyway, but for different reasons) I have now made things so that preview and motion always agree (regardless of config units or G20 / G21 status), but rather unsatisfactorily the precise point at which arcs become circles still depends on the configuration base units. I wanted to consistently use CART_FUZZ in mm but _posemath doesn't "know" the config units as far as I can tell. I tested all the combos: config mm program mm _posemath mm config mm program in _posemath mm config in program mm _posemath in config in program in _posemath in config mm program mm gcodemodule in config mm program in gcodemodule in config in program mm gcodemodule in config in program in gcodemodule in -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers