按规划继续工作

结论:新增解释器初始化和同步的 WASM/浏览器验证,继续保持核心行为来自 vendored LinuxCNC。
This commit is contained in:
2026-06-08 11:21:05 +08:00
parent a8bc1f18cb
commit ec3d784f2b
8 changed files with 137 additions and 9 deletions

View File

@@ -128,6 +128,34 @@
},
});
verifyExpectedOutput(
"probe_init_and_synch",
interp.probeInitAndSynch(),
[
"init=0",
"setup.length_units=2",
"setup.origin_index=1",
"setup.distance_mode=0",
"setup.feed_mode=0",
"setup.motion_mode=800",
"canon_event=INIT_CANON",
"canon_event=USE_LENGTH_UNITS units=2",
"canon_event=SET_G5X_OFFSET index=1",
"canon_event=SET_G92_OFFSET x=0 y=0 z=0",
"canon_event=SET_XY_ROTATION rotation=0",
"canon_event=SET_FEED_REFERENCE reference=2",
"inch_init=0",
"inch_setup.length_units=1",
"inch_external_length_units=0.0393701",
"inch_canon_event=USE_LENGTH_UNITS units=1",
"synch=0",
"synch.current_pocket=2",
"synch.selected_pocket=2",
"synch.tool_0=2",
"synch.tool_2=2",
].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`);