按源验证G10坐标UVW偏置

This commit is contained in:
cnc
2026-06-06 08:38:23 +08:00
parent cdc30dda7e
commit 82f222ba44
3 changed files with 15 additions and 3 deletions

View File

@@ -1802,6 +1802,9 @@ done
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g76only.ngc \
>"$output_dir/cnc_sim_linuxcnc_source_g76only.json"
# Source basis: LinuxCNC src/emc/rs274ngc/interp_convert.cc convert_setup()
# stores G10 L2 U/V/W through PROGRAM_TO_USER_LEN, and
# convert_coordinate_system() emits them through SET_G5X_OFFSET.
cp "$base_var_file" "$var_file"
CNC_SIM_RS274_VAR="$var_file" \
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_coordinate_offsets.ngc \
@@ -3972,7 +3975,10 @@ if not any(
event["tool"] == 1 and
event["start"]["x"] == 12.5 and
event["start"]["y"] == -3 and
event["start"]["z"] == 4
event["start"]["z"] == 4 and
event["start"]["u"] == 7 and
event["start"]["v"] == 8 and
event["start"]["w"] == 9
for event in g5x
):
raise SystemExit("missing source-linked G10 L2 G5X offset event")