Skip to content

task: abort once after a motion error, not again on an old status copy - #4816

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:motion-abort-stale
Open

grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:motion-abort-stale

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

After a motion error, such as a G38.2 that ends without contact, task aborts. If its next status read from motion fails, task keeps its old copy, which still shows the error, and aborts a second time. That second abort also drops the command that just came in, for example the move sent after the failed probe.

A failed read already did not report an old copy as done (#4666); now it does not report it as an error either.

Test: tests/stale-motion-status slow-controller now runs five no-contact probes after its program, with slowkins making task's status reads fail after each one. It checks there is one abort per probe and that the next move runs. Master fails it 8 times out of 8; with the fix it passes every time, also under load. Full suite 368/368.

After a motion error task aborts. If its next status read from motion failed, task kept its old copy, still showing the error, and aborted a second time, dropping the command that had just come in. A failed read now reports an old copy as busy, not as an error, as it already did for done.

tests/stale-motion-status slow-controller checks one abort per failed probe and that the next move runs.
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.

1 participant