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 for not assuming that origin position is 0,0,0 #2423

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

breiler
Copy link
Collaborator

@breiler breiler commented Jan 14, 2024

This fix will make UGS use the current work position as the starting point and use it for rendering the gcode in in the visualizer.

Consider this GCode, it has no Z coordinate defined but is yet rendered with the center at Z0 without this fix.

G17 G20 G90 G94 G54 M0 M5 M9
G0 X-0.5 Y0. F5
G2 X0. Y-0.5 I0.5 J0.
G2 X-0.5 Y0. I0. J0.5

If I were to run this when the Z-position was not zero, what is visualized is not what I get:
image

With these changes it will now properly visualize what is going to happen when running this gcode program:
image

Also fixes some of the problems in the autoleveler discussed in #1583

This fix will make the UGS fetch the first point from the controller and display it in the visualizer.
@breiler breiler merged commit 9fba1ae into winder:master Jan 15, 2024
2 checks passed
@breiler breiler deleted the bugfix/default-position branch February 1, 2024 06:05
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