Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed behaviour of height map interpolation when a point is outside the probe area #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dilbert283
Copy link

In one of my recent auto-leveling pcb job, I couldn't probe the whole surface of the job because of the presence of fixtures on two corners of the pcb. So I restricted the probe area to a surface that left some tracks outside of that area. During milling, these tracks haven't be milled because the tool path was too high. I saw that the Z axis was doing an abrupt change of coordinate when crossing the probing area edges.

Looking at the source code of OpenCncPilot I saw that the surface of all points outside of the probe area are considered to be at an height equal to the max probed height. This explain the jump in Z coordinates I saw when crossing the edges of the probe area.

Take as an example the following job with sample data consisting of a lot of small squares, with a probe area that don't cover the whole pcb.
test-pattern2
We see that the resulting auto-leveled job has jumps on Z outside the probe area because the max probe height is used there:
autolevel-old2

So my proposal with this PR is to use instead the probed height of the nearest point on the probe area edge:
autolevel-new2

…edge when a point is outside that area, instead of using max probed height.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant