按规划继续工作

结论:新增 rotary indexer 的 WASM 和浏览器验证,继续通过 vendored LinuxCNC 解释器路径覆盖运行边界。
This commit is contained in:
2026-06-08 11:25:59 +08:00
parent ec3d784f2b
commit d2d0ce8bc1
8 changed files with 85 additions and 5 deletions

View File

@@ -156,6 +156,22 @@
].join("\n"),
);
verifyExpectedOutput(
"probe_indexer",
interp.probeIndexer(),
[
"execute=0",
"post_a=90",
"canon_event=SET_MOTION_CONTROL_MODE mode=2 tolerance=0",
"canon_event=UNLOCK_ROTARY line=1 joint=0",
"canon_event=STRAIGHT_TRAVERSE line=1 x=0 y=0 z=0 a=90 b=0 c=0 u=0 v=0 w=0",
"canon_event=LOCK_ROTARY line=1 joint=0",
"canon_event=SET_MOTION_CONTROL_MODE mode=1 tolerance=0",
"canon_event=SET_NAIVECAM_TOLERANCE tolerance=0",
"canon_event=UPDATE_TAG line=1",
].join("\n"),
);
for (const fixtureName of INTERP_BROWSER_MDI_FIXTURES) {
const programText = await fetchText(`../fixtures/gcode/${fixtureName}.ngc`);
const expectedText = await fetchText(`../fixtures/canon/${fixtureName}.events`);

View File

@@ -114,6 +114,22 @@ verifyExpectedOutput(
].join("\n"),
);
verifyExpectedOutput(
"probe_indexer",
interp.probeIndexer(),
[
"execute=0",
"post_a=90",
"canon_event=SET_MOTION_CONTROL_MODE mode=2 tolerance=0",
"canon_event=UNLOCK_ROTARY line=1 joint=0",
"canon_event=STRAIGHT_TRAVERSE line=1 x=0 y=0 z=0 a=90 b=0 c=0 u=0 v=0 w=0",
"canon_event=LOCK_ROTARY line=1 joint=0",
"canon_event=SET_MOTION_CONTROL_MODE mode=1 tolerance=0",
"canon_event=SET_NAIVECAM_TOLERANCE tolerance=0",
"canon_event=UPDATE_TAG line=1",
].join("\n"),
);
for (const fixtureName of INTERP_MDI_FIXTURES) {
const programText = readFileSync(
resolve(rootDir, `tests/fixtures/gcode/${fixtureName}.ngc`),