增加当前位置参数fixture验证

结论:新增 position_params fixture,覆盖 Z 轴运动与 #5420/#5421/#5422 当前坐标参数同步;最小 harness 输出当前位置参数,runtime 在直线运动后刷新相对位置参数。检查:git diff --check 通过;wasm-port/tests/native/verify_native_probes.sh 通过。
This commit is contained in:
cnc
2026-06-06 22:55:50 +08:00
parent 1827b7dd47
commit 7d71e3bc6d
5 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
canon_event=STRAIGHT_TRAVERSE line=1 x=1 y=2 z=3 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=SET_FEED_RATE rate=80
canon_event=STRAIGHT_FEED line=2 x=1.5 y=1 z=5 a=0 b=0 c=0 u=0 v=0 w=0
setup.current_x=1.5
setup.current_y=1
setup.current_z=5
setup.parameter_5420=1.5
setup.parameter_5421=1
setup.parameter_5422=5

View File

@@ -0,0 +1,2 @@
G90 G0 X1.0 Y2.0 Z3.0
G91 G1 X0.5 Y-1.0 Z2.0 F80.0