按规划继续工作
结论:新增解释器初始化和同步的 WASM/浏览器验证,继续保持核心行为来自 vendored LinuxCNC。
This commit is contained in:
@@ -86,6 +86,34 @@ const interp = await createLinuxCncInterpSdk({
|
||||
},
|
||||
});
|
||||
|
||||
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_MDI_FIXTURES) {
|
||||
const programText = readFileSync(
|
||||
resolve(rootDir, `tests/fixtures/gcode/${fixtureName}.ngc`),
|
||||
|
||||
Reference in New Issue
Block a user