继续按 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:
11
tests/gcode/linuxcnc_lathe_diameter_mode.ngc
Normal file
11
tests/gcode/linuxcnc_lathe_diameter_mode.ngc
Normal 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
|
||||
Reference in New Issue
Block a user