Repository navigation
Conversation
M495 (path origin, margin, Z probe, auto leveling) runs in the active WCS, while the program selects its own WCS only once it plays. When the active WCS differed, the Z probe was stored in the wrong WCS and the path origin was taken in the wrong place. - When a file is loaded, find the WCS it selects before its first move (G53 moves do not count) and send it before M495 on Run and on Margin/ZProbe/AutoLevel. Resume at line is unchanged. - The start job popup shows that WCS: origin label, origin point, work area, Z probe and leveling points with its rotation, the origin popup and the anchor preselection. The values of a WCS other than the active one come from "get wcs", which the popup requests when it opens. - Set work origin writes the shown WCS (G10 L2 Pn). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Sorry Mark, I forgot to review this last week. I see two edge cases: On 4th-axis gcode, apply() still clears rotation with G10 L2 R0 P0 (via The “go to path origin” code (in It's always been a wierd to me that these are immediately executed, maybe it would simpler if they were buffered. |
I'll have a look at this soon. After craboulas upcoming changes, we should think about if resetting the rotation is necessary. It was meant to be a safety feature for unaware users. But our software has become more powerful and acts more like a grown controller software, where a wcs rotation wouldn't be reset. I'll fix the second point and I'll also add visualization for all boundaries in all wcs that are used. |
|
I think I'll be ready to publish the fixes soon! |
Before, M495 (path origin, margin, Z probe, auto leveling) runs in the active WCS. When the active WCS differed from the first wcs mentioned in the file before the first move, the Z probe was stored in the wrong WCS and the path origin was taken in the wrong place.
Summary
Contributor checklist
for the complete change.
poetry run pre-commit run --all-files) passes with no errors.