Show live LinuxCNC G-code execution progress

This commit is contained in:
2026-08-29 07:03:43 +08:00
parent 24d4930803
commit 74ae2538a3
5 changed files with 32 additions and 7 deletions

View File

@@ -161,9 +161,12 @@ export class SimSession {
loaded: program.loaded,
current_line: program.current_line,
line: program.line,
execution_line: program.execution_line,
execution_line_text: program.execution_line_text,
path: program.path,
source_hash: program.source_hash,
state_hash: program.state_hash,
active_gcodes: program.active_gcodes,
} : null;
const trace = Array.isArray(statePayload.motion_trace) ? statePayload.motion_trace : [];
const motionSample = motionDelta ? (trace.at(-1) ?? {