From 3096b7273476ed99bbd72d384ed522c4dac4e6a2 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Sun, 7 Jun 2026 21:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E5=BB=BA=E8=AE=AE=EF=BC=8C=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:已新增 G17/G18/G19 平面选择 fixture,固定 vendored LinuxCNC convert_set_plane() 产生的 SELECT_PLANE canonical 边界;native probe 全量验证通过。 --- wasm-port/docs/porting-steps-standalone.md | 4 ++++ wasm-port/docs/scope-and-baseline.md | 1 + wasm-port/tests/fixtures/canon/plane_selection.events | 3 +++ wasm-port/tests/fixtures/gcode/plane_selection.ngc | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 wasm-port/tests/fixtures/canon/plane_selection.events create mode 100644 wasm-port/tests/fixtures/gcode/plane_selection.ngc diff --git a/wasm-port/docs/porting-steps-standalone.md b/wasm-port/docs/porting-steps-standalone.md index 584136a..80773c1 100644 --- a/wasm-port/docs/porting-steps-standalone.md +++ b/wasm-port/docs/porting-steps-standalone.md @@ -384,6 +384,10 @@ Current verified progress: `tests/fixtures/canon/length_units.events` pin `G20`/`G21` unit switching and the `USE_LENGTH_UNITS` canonical boundary emitted by vendored `interp_convert.cc::convert_length_units()`. +- `tests/fixtures/gcode/plane_selection.ngc` and + `tests/fixtures/canon/plane_selection.events` pin `G17`/`G18`/`G19` plane + switching and the `SELECT_PLANE` canonical boundary emitted by vendored + `interp_convert.cc::convert_set_plane()`. - `runtime/core/linuxcnc_wrap/linuxcnc_interp_minimal_runtime.cpp` now records feed/control canonical boundary calls emitted by vendored LinuxCNC conversion and queue code: `SET_TRAVERSE_RATE`, `SET_FEED_REFERENCE`, diff --git a/wasm-port/docs/scope-and-baseline.md b/wasm-port/docs/scope-and-baseline.md index a8d92ee..f72eb1d 100644 --- a/wasm-port/docs/scope-and-baseline.md +++ b/wasm-port/docs/scope-and-baseline.md @@ -36,6 +36,7 @@ G-code fixture coverage includes: - arc semantics - modal incremental and absolute distance modes - length unit switching +- plane selection - position parameters - canned cycles - coordinate offsets diff --git a/wasm-port/tests/fixtures/canon/plane_selection.events b/wasm-port/tests/fixtures/canon/plane_selection.events new file mode 100644 index 0000000..6fcf84a --- /dev/null +++ b/wasm-port/tests/fixtures/canon/plane_selection.events @@ -0,0 +1,3 @@ +canon_event=SELECT_PLANE plane=3 +canon_event=SELECT_PLANE plane=2 +canon_event=SELECT_PLANE plane=1 diff --git a/wasm-port/tests/fixtures/gcode/plane_selection.ngc b/wasm-port/tests/fixtures/gcode/plane_selection.ngc new file mode 100644 index 0000000..fe62d57 --- /dev/null +++ b/wasm-port/tests/fixtures/gcode/plane_selection.ngc @@ -0,0 +1,3 @@ +G18 +G19 +G17