Files
cnc_wams/备忘/备份4.txt

93 lines
3.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
本地 LinuxCNC 里同时存在两类关键来源axis/vismach/5axis/table-rotary-tilting
的 xyzac-trt/xyzbc-trt 完整配置,
以及 gmoccapy/non_trivial_kinematics/table-rotary-tilting 的
gmoccapy 五轴示例。下一步会把这两类来源都落到“对标矩阵”里,避免只覆盖 AXIS/vismach 而漏掉 gmoccapy 路径。
矩阵会区分“已在浏览器仿真实现”和“只作为 LinuxCNC 源码边界参考”。
例如 gmoccapy.py/Glade/图标是界面与 HAL 语义参考;
实际状态互锁由 Web store 和 task policy 承接,不会误标成浏览器里运行了 GTK/Python。
1、当前代码里已经有 source-reference-map.js但它主要是“来源索引”
还没有把“哪些 LinuxCNC 功能已经由 Web 状态机承接”做成运行时矩阵。
我会在这个基础上补,不重复维护一套散乱清单。
2、实现上我不会把所有内容塞进 UI 字符串里,而是新增一个可测试的状态对象 linuxCncParityMatrix。
界面只负责展示摘要,测试负责检查“对标清单”没有丢项。
3、现在开始改文件先扩展 LinuxCNC source map
再加运行时矩阵模块,最后把矩阵接到 store、界面和 smoke 测试。
Read 3 files and searched codeSearched for *xyzac*trt* in linuxcnc
Read xyzac-trt.ini
Read postgui.hal
Read xyzac-trt.ini
我会做三处编辑:新增一个运行时 linuxcnc-parity-matrix 模块;把矩阵挂进 store 和 gmoccapy 信息区;再补一个 Node smoke确保矩阵里确实包含 gmoccapy、TRT INI、vismach Python、kinematics、M428/M429/M430、真实 G-code 程序来源。
Read 8 files and searched code, ran a commandRead store.js
Read package.json
Read index.js
Read xyzac-trt.js
Read xyzbc-trt.js
Searched for referenceCount|sourceRequiredCount|sourceReferences\.length|sourceSummary\.referenceCount|Profile refs|Source map in node
Read verify_profile_boundary.mjs
Read verify_gmoccapy_xyzab_profile.mjs
Read gmoccapy_shell_smoke.html
Ran test -f ../linuxcnc/src/emc/task/emctask.cc && echo emctask.cc=ok || true; test -f ../linuxcnc/src/emc/task/emctaskmain.cc && echo emctaskmain.cc=ok || true; test -f ../linuxcnc/src/emc/nml_intf/emc.hh && echo emc.hh=ok || true; test -f ../linuxcnc/src/emc/usr_intf/gmoccapy/gmoccapy.py && echo gmoccapy.py=ok || true; test -f ../linuxcnc/src/hal/user_comps/vismach/xyzac-trt-gui.py && echo xyzac_gui=ok || true; test -f ../linuxcnc/src/hal/user_comps/vismach/xyzbc-trt-gui.py && echo xyzbc_gui=ok || true
Searched for EMC_TASK_SET_MODE|EMC_TASK_SET_STATE|EMC_TASK_PLAN_RUN|EMC_TASK_PLAN_EXECUTE|EMC_TASK_PLAN_PAUSE|EMC_TASK_PLAN_RESUME|EMC_TASK_PLAN_STEP|EMC_TASK_ABORT|EMC_JOG|EMC_JOINT_HOME in task
Searched for const TASK_POLICY_SOURCE_REFERENCES|sourceReferences|EMC_TASK_SET_STATE|emctask in linuxcnc-task-policy.js
Searched for gmoccapy|xyzac-trt-gui|xyzbc-trt-gui|M428|M429|M430|motion.switchkins-type|POSTGUI_HALFILE|DISPLAY = gmoccapy|DISPLAY = axis in table-rotary-tilting