feat: implement Excellon M70/M80/M90 axis transform commands#301
Open
rampageservices wants to merge 1 commit intogerbv:developfrom
Open
feat: implement Excellon M70/M80/M90 axis transform commands#301rampageservices wants to merge 1 commit intogerbv:developfrom
rampageservices wants to merge 1 commit intogerbv:developfrom
Conversation
M70 (swap axes), M80 (mirror X), and M90 (mirror Y) are Excellon commands that transform coordinate interpretation for bottom-side drill files or rotated boards. They act as state toggles — issuing the same command twice cancels it. - Add swap_axis/mirror_x/mirror_y state fields to drill_state_t - Add dispatch handlers that toggle state on each M-code - Apply transforms to raw parsed coordinates before absolute/incremental store - Wire up M70/M80/M90 stats counting and UI display - Add regression test with 4 holes verifying each transform
This was referenced Feb 28, 2026
This was referenced Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These are state toggles — issuing the same command twice cancels it. Some CAD tools emit these for bottom-side drill files or rotated boards. Previously these had enum values and display names but no parsing or dispatch — they fell through to "unknown M-code".
Changes
swap_axis/mirror_x/mirror_ystate fields todrill_state_tdrill_parse_M_code()drill_stats.cand UI display rows incallbacks.cTest plan
cmake --build build— clean build, no warningstest-drill-axis-transformsregression test passes (4 holes in distinct positions)