Preserve RTCP compensation across rotary jog stops

This commit is contained in:
2026-09-18 06:10:53 +08:00
parent e4600b34e3
commit 6a69511276
14 changed files with 4530 additions and 7 deletions

View File

@@ -31,9 +31,11 @@ assert.equal(blocked.payload.code, "axis_gate");
assert.equal(blocked.payload.reason, "xyzac_machine_off");
assert.equal(blocked.payload.message_key, "xyzac_machine_off");
first.send("POWER", { active: true });
first.send("HOME", { all: true });
first.send("PROGRAM_LOAD", { source: PROGRAM, path: "followups.ngc" });
first.send("PROGRAM_RUN");
assert.equal(first.send("HOME", { all: true }).kind, "COMMAND_RESULT");
for (let tick = 0; tick < 500 && !first.session.wasmHomeLimit.read().state.homed; tick++) first.send("SIM_STEP", { cycles: 1 });
assert.equal(first.session.wasmHomeLimit.read().state.homed, true);
assert.equal(first.send("PROGRAM_LOAD", { source: PROGRAM, path: "followups.ngc" }).kind, "COMMAND_RESULT");
assert.equal(first.send("PROGRAM_RUN").kind, "COMMAND_RESULT");
const compact = first.send("SIM_STEP", { cycles: 1, response: "motion_delta" });
assert.equal(compact.payload.snapshot_mode, "motion_delta");
assert.equal(compact.payload.panel_snapshot, undefined);