Keep G-code matched to imported AC or BC machine type

This commit is contained in:
2026-09-21 19:52:31 +08:00
parent 86cfa2b7f0
commit 0de96bbc72
20 changed files with 315 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

View File

@@ -0,0 +1,18 @@
{
"schema": "boat-trt-programs.v1",
"status": "verified",
"rows": [
{
"coordinates": "XYZAC",
"program": "linuxcnc/configs/sim/axis/vismach/5axis/table-rotary-tilting/demos/boat-xyzac.ngc",
"status": "completed",
"rotary": "a"
},
{
"coordinates": "XYZBC",
"program": "linuxcnc/configs/sim/axis/vismach/5axis/table-rotary-tilting/demos/boat-xyzbc.ngc",
"status": "completed",
"rotary": "b"
}
]
}

View File

@@ -0,0 +1,15 @@
{
"report_id": "TRT-PROGRAM-COMPAT-BROWSER",
"status": "verified",
"url": "http://127.0.0.1:5180/",
"checks": [
"AC to BC model import replaces source/path/preview with BC boat program",
"renamed AC file rejected on BC; previous loaded taskfile remains intact",
"editor reload also rejects wrong-axis program without replacing loaded taskfile",
"same-type reimport preserves custom compatible program",
"BC to AC model import loads AC boat",
"manager apply also switches program to matching BC family",
"BC machine runs BC G-code after home; header/controller/program agree"
],
"errors": []
}

View File

@@ -0,0 +1,72 @@
{
"schema": "rtcp-program-catalog-load.v1",
"status": "verified",
"programs": [
{
"id": "trt-boat-xyzac",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:bdc95b491cd714d9",
"preview_segments": 1825
},
{
"id": "trt-impeller-xyzac",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:76b5e2017a1b0a93",
"preview_segments": 4492
},
{
"id": "trt-xyzac-switchkins",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:522e219683194ad2",
"preview_segments": 29
},
{
"id": "trt-xyzac-switchkins-test-1",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:f1d649350d9dd63d",
"preview_segments": 17
},
{
"id": "trt-xyzac-switchkins-test-2",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:00aebdd97af4c5d8",
"preview_segments": 32
},
{
"id": "trt-xyzac-switchkins-test-3",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:cf7e5987249c1bf8",
"preview_segments": 3
},
{
"id": "gmoccapy-boat-xyzac",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:9d09b727bef67c7c",
"preview_segments": 1825
},
{
"id": "gmoccapy-impeller-xyzac",
"coordinates": "XYZAC",
"source_hash": "fnv1a64:3e4cbd31dd06ec9c",
"preview_segments": 4492
},
{
"id": "trt-boat-xyzbc",
"coordinates": "XYZBC",
"source_hash": "fnv1a64:b1887a8c8fd29012",
"preview_segments": 1820
},
{
"id": "trt-xyzbc-switchkins",
"coordinates": "XYZBC",
"source_hash": "fnv1a64:622cce6b5c7277f1",
"preview_segments": 29
},
{
"id": "gmoccapy-boat-xyzbc",
"coordinates": "XYZBC",
"source_hash": "fnv1a64:7cef899039522872",
"preview_segments": 1820
}
]
}

View File

@@ -0,0 +1,8 @@
{
"schema": "xyzac-program-replacement.v1",
"status": "verified",
"first_segments": 1,
"failed_segments": 0,
"second_segments": 1,
"old_preview_retained_after_failure": false
}

View File

@@ -0,0 +1,18 @@
{
"schema": "xyzac-step-flow.v2",
"status": "verified",
"source": [
"axis.py::task_step",
"emctaskmain.cc::EMC_TASK_PLAN_STEP_TYPE",
"sim_linuxcnc_tp_step_line"
],
"phases": [
"start_pause",
"source_line_pause",
"source_line_motion",
"motion_step_pending",
"terminal"
],
"duplicate_step_idempotent": true,
"completed_and_aborted_rerun": true
}

View File

@@ -0,0 +1,18 @@
{
"report_id": "TRT-PROGRAM-COMPAT-WORKER",
"status": "verified",
"rows": [
{
"coordinates": "XYZAC",
"load_rejected": true,
"legacy_execution_rejected": true,
"generic_allowed": true
},
{
"coordinates": "XYZBC",
"load_rejected": true,
"legacy_execution_rejected": true,
"generic_allowed": true
}
]
}