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

Fix heightmap probe regex #64

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

Conversation

PSIAlt
Copy link

@PSIAlt PSIAlt commented Jan 3, 2025

This will fix heightmap zeroes on machnies that have >3 axis.

In short, some CNC machines have >3axis and thus it responds PRB like this:

[PRB:0.000,0.000,0.000,0.000,0.000,0.000:0]
ok
G21G91G38.2Z-30F80 < [PRB:-261.318,-90.941,-16.478,0.000,0.000,0.000:1]
ok
G0Z1 < ok
G38.2Z-2F10 < [PRB:-261.318,-90.941,-16.489,0.000,0.000,0.000:1]
ok

To fix this, I made this PR, fixing capturing regex.

See topic Denvi/Candle#589 where it was initially fixed somehow, but using ill-formed regex and not supporting many-axis CNC machines. This PR fixes that issue.

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