按建议,继续工作
结论:已新增 G20/G21 单位切换 fixture,固定 vendored LinuxCNC convert_length_units() 产生的 USE_LENGTH_UNITS canonical 边界;native probe 全量验证通过。
This commit is contained in:
8
wasm-port/tests/fixtures/canon/length_units.events
vendored
Normal file
8
wasm-port/tests/fixtures/canon/length_units.events
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
canon_event=SELECT_PLANE plane=1
|
||||
canon_event=STRAIGHT_TRAVERSE line=1 x=25.4 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
|
||||
canon_event=USE_LENGTH_UNITS units=1
|
||||
canon_event=SET_FEED_RATE rate=60
|
||||
canon_event=STRAIGHT_FEED line=3 x=1.5 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
|
||||
canon_event=USE_LENGTH_UNITS units=2
|
||||
canon_event=SET_FEED_RATE rate=120
|
||||
canon_event=STRAIGHT_FEED line=5 x=50.8 y=0 z=0 a=0 b=0 c=0 u=0 v=0 w=0
|
||||
5
wasm-port/tests/fixtures/gcode/length_units.ngc
vendored
Normal file
5
wasm-port/tests/fixtures/gcode/length_units.ngc
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
G90 G17 G0 X25.4 Y0 Z0
|
||||
G20
|
||||
G1 X1.5 F60
|
||||
G21
|
||||
G1 X50.8 F120
|
||||
Reference in New Issue
Block a user