Skip to content

Fix homing bug when trying to home while homing is in progress (2.9 backport) - #4321

Open
grandixximo wants to merge 1 commit into
LinuxCNC:2.9from
grandixximo:backport-homing-guard-2.9
Open

Fix homing bug when trying to home while homing is in progress (2.9 backport)#4321
grandixximo wants to merge 1 commit into
LinuxCNC:2.9from
grandixximo:backport-homing-guard-2.9

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

Backport of 9d5570c (#3664) to 2.9.

Fixes #4316, which is the same bug as #3314: starting to home a second axis while a homing sequence is already in progress breaks the running homing, and the first joint keeps moving past its ref/limit switch into the mechanical limits.

The command.c change rejects EMCMOT_JOINT_HOME while homing is active, which is the machine-safety part. The axis.py and gmoccapy.py changes guard the GUIs so wait_complete() does not freeze the UI on the rejected command.

Cherry-picked cleanly onto 2.9, no conflicts.

… in progress

Fixes LinuxCNC#3314
The modification to 'command.c' prevents the homing process breaking where the
joint would continue moving indefinitely.
The modifications to axis.py and gmoccapy.py prevents the gui freezing that
occurs due to wait_complete() timing out to the default 5 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants