继续按 align-linuxcnc 约束:补 G7G8 源链接回归

结论:新增 LinuxCNC-backed lathe diameter/radius fixture,依据 interp_convert.cc::convert_lathe_diameter_mode 与 interp_namedparams.cc readonly 参数,在 native librs274 与 source-link runner 中验证 G7/G8 同块 X 缩放和 #<_lathe_diameter_mode>/#<_lathe_radius_mode> 分支;未扩展 smoke,test-native 与 test-linuxcnc-source-link 均通过。
This commit is contained in:
cnc
2026-06-02 15:27:31 +08:00
parent 6266887fec
commit 6e0a5627f0
6 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
G21 G90
F100
G7 G1 X10
O10 if [#<_lathe_diameter_mode> EQ 1]
G1 Y1
O10 endif
G8 G1 X6
O20 if [#<_lathe_radius_mode> EQ 1]
G1 Y2
O20 endif
M30