81
Mach4 General Discussion / Re: Mach4 scaling using M51
« on: October 26, 2022, 08:36:31 AM »
I think you are referring to g51.
I use an mc.AxisSetScale with a camera that finds fiducials and scales the x and y accordingly.
This is where it sets the scaling.
--calculate y scale amount
ScaleAmountY = (BCOffTtlLnth / BCGcdTtlLnth)
--set x scale amount
mc.mcAxisSetScale(inst, 1, ScaleAmountY)
I use an mc.AxisSetScale with a camera that finds fiducials and scales the x and y accordingly.
This is where it sets the scaling.
--calculate y scale amount
ScaleAmountY = (BCOffTtlLnth / BCGcdTtlLnth)
--set x scale amount
mc.mcAxisSetScale(inst, 1, ScaleAmountY)