Propagate LinuxCNC canon event line numbers
This commit is contained in:
@@ -82,6 +82,7 @@ g5x = [event for event in coords if event["type"] == "set-g5x-offset"]
|
||||
g92 = [event for event in coords if event["type"] == "set-g92-offset"]
|
||||
rot = [event for event in coords if event["type"] == "set-xy-rotation"]
|
||||
if not any(
|
||||
event["line"] == 2 and
|
||||
event["tool"] == 1 and
|
||||
event["start"]["x"] == 12.5 and
|
||||
event["start"]["y"] == -3 and
|
||||
@@ -92,12 +93,15 @@ if not any(
|
||||
if not any(event["feed"] == 30 for event in rot):
|
||||
raise SystemExit("missing G10 L2 XY rotation event")
|
||||
if not any(
|
||||
event["line"] == 4 and
|
||||
event["start"]["x"] == 0 and
|
||||
event["start"]["y"] == 0 and
|
||||
event["start"]["z"] == 0
|
||||
for event in g92
|
||||
):
|
||||
raise SystemExit("missing G92.1 clear offset event")
|
||||
if not any(event["type"] == "program-end" and event["line"] == 5 for event in coords):
|
||||
raise SystemExit("missing coordinate program end line number")
|
||||
PY
|
||||
|
||||
echo "linuxcnc rs274 native smoke passed"
|
||||
|
||||
Reference in New Issue
Block a user