Validate LinuxCNC tool length offsets

This commit is contained in:
cnc
2026-05-22 16:19:55 +08:00
parent ca03981d3f
commit 874610560a
5 changed files with 26 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ void cnc_sim_init_minimal_linuxcnc_tooldata() {
tool.toolno = 1;
tool.pocketno = 1;
tool.diameter = 6.0;
tool.offset.tran.z = 12.5;
tooldata_put(tool, 1);
tooldata_last_index_set(1);
}

View File

@@ -346,7 +346,7 @@ int main() {
(event.type == CNC_SIM_EVENT_COMMENT &&
event.line == 2 &&
event.reserved == 430 &&
event.start.z == 0.0);
near(event.start.z, 12.5));
saw_tool_length_clear = saw_tool_length_clear ||
(event.type == CNC_SIM_EVENT_COMMENT &&
event.line == 3 &&