按建议,继续工作

结论:已新增 G53 机床坐标正向 fixture 和增量模式拒绝 fixture,固定 vendored LinuxCNC find_ends()/convert_straight() 行为;native probe 全量验证通过。
This commit is contained in:
2026-06-07 21:42:36 +08:00
parent d02fe9e07f
commit 59cfc8406e
7 changed files with 26 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ Positive G-code fixtures currently cover:
- position parameters
- canned cycles
- coordinate offsets
- G53 machine-coordinate motion
- feed and motion control modes
- probing
- threading and rigid tap
@@ -84,6 +85,7 @@ Negative fixtures currently cover:
- zero-feed `G1`
- arc radius mismatch
- zero-radius arc
- G53 incremental-mode rejection
- read-only named parameter writes
- read-only numbered parameter writes
- missing tool

View File

@@ -402,6 +402,13 @@ Current verified progress:
`tests/fixtures/canon/cutter_comp_motion.events` pin positive `G41.1`/`G40`
compensated straight-feed output through vendored `interp_convert.cc` and
`interp_queue.cc`.
- `tests/fixtures/gcode/g53_machine_coordinates.ngc` and
`tests/fixtures/canon/g53_machine_coordinates.events` pin `G53` machine
coordinate straight-traverse behavior through vendored
`interp_find.cc::find_ends()` and `interp_convert.cc::convert_straight()`.
`tests/fixtures/gcode_errors/g53_incremental.ngc` and
`tests/fixtures/canon_errors/g53_incremental.expected` pin the LinuxCNC
rejection path for `G53` while incremental distance mode is active.
- `runtime/core/linuxcnc_wrap/linuxcnc_interp_minimal_runtime.cpp` now records
feed/control canonical boundary calls emitted by vendored LinuxCNC
conversion and queue code: `SET_TRAVERSE_RATE`, `SET_FEED_REFERENCE`,

View File

@@ -40,6 +40,7 @@ G-code fixture coverage includes:
- position parameters
- canned cycles
- coordinate offsets
- G53 machine-coordinate motion
- feed and motion control modes
- cutter compensation motion
- probe semantics
@@ -58,6 +59,7 @@ Negative fixture coverage includes:
- arc radius mismatch
- zero-radius arc
- cutter compensation plane-change rejection
- G53 incremental-mode rejection
- read-only named parameter writes
- read-only numbered parameter writes
- missing tool

View File

@@ -0,0 +1,5 @@
canon_event=SELECT_PLANE plane=1
canon_event=STRAIGHT_TRAVERSE line=1 x=5 y=5 z=5 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=STRAIGHT_TRAVERSE line=2 x=1 y=2 z=3 a=0 b=0 c=0 u=0 v=0 w=0
canon_event=SET_FEED_RATE rate=90
canon_event=STRAIGHT_FEED line=3 x=4 y=5 z=6 a=0 b=0 c=0 u=0 v=0 w=0

View File

@@ -0,0 +1,5 @@
execute_line_1=0
execute_line_2=5
error_text=Cannot use g53 incremental
canon_event=COMMENT: interpreter: distance mode changed to incremental
absent=canon_event=STRAIGHT_TRAVERSE line=2

View File

@@ -0,0 +1,3 @@
G90 G17 G0 X5 Y5 Z5
G53 G0 X1 Y2 Z3
G1 X4 Y5 Z6 F90

View File

@@ -0,0 +1,2 @@
G91
G53 G0 X1