按建议继续完成后续工作

结论:upstream rs274 side-by-side 基线已扩展到 threading/rigid tap canonical 调用;完整 native 验证已通过。
This commit is contained in:
2026-06-07 22:56:05 +08:00
parent 7566d733e2
commit 55fcaf0267
4 changed files with 60 additions and 13 deletions

View File

@@ -23,6 +23,7 @@ FIXTURES=(
percent_file_finish
position_params
spindle_orient
threading_sync
tool_reload
)
@@ -224,6 +225,33 @@ normalize_standalone_events() {
next
}
if (line ~ /^START_SPEED_FEED_SYNCH /) {
split(line, fields, /[[:space:]]+/)
for (i in fields) {
split(fields[i], pair, "=")
values[pair[1]] = pair[2]
}
print "START_SPEED_FEED_SYNCH|" norm(values["feed_per_revolution"]) "|" values["velocity_mode"]
delete values
next
}
if (line == "STOP_SPEED_FEED_SYNCH") {
print line
next
}
if (line ~ /^RIGID_TAP /) {
split(line, fields, /[[:space:]]+/)
for (i in fields) {
split(fields[i], pair, "=")
values[pair[1]] = pair[2]
}
print "RIGID_TAP|" norm(values["x"]) "|" norm(values["y"]) "|" norm(values["z"])
delete values
next
}
# Upstream rs274 does not emit saicanon WAIT for the M66 case.
if (line ~ /^WAIT /) {
next
@@ -476,6 +504,25 @@ normalize_upstream_rs274_output() {
next
}
if (line ~ /^START_SPEED_FEED_SYNC\(/) {
args = args_of(line)
split(args, values, ",")
print "START_SPEED_FEED_SYNCH|" norm(values[1]) "|" trim(values[2])
next
}
if (line == "STOP_SPEED_FEED_SYNCH()") {
print "STOP_SPEED_FEED_SYNCH"
next
}
if (line ~ /^RIGID_TAP\(/) {
args = args_of(line)
split(args, values, ",")
print "RIGID_TAP|" norm(values[1]) "|" norm(values[2]) "|" norm(values[3])
next
}
if (line ~ /^SET_FEED_MODE\(/) {
args = args_of(line)
split(args, values, ",")