Repository navigation
task: hold an MDI back while a kinematics switch is still landing - #4951
Merged
Merged
Conversation
An abort routine that selects a kinematics, G13.1 in ON_ABORT_COMMAND, runs inside the interpreter at once, but its switch reaches motion later, and until it has landed the interpreter is back on the type motion still runs. An MDI arriving in that wait was read straight away under the old type: G43.4 H1 sent right after an abort found the interpreter already on the primary kinematics, queued no switch, and left G43.4 active with motion in identity. A G12.1 or G13.1 in a program or MDI line sets the wait flag, which holds an MDI back. The abort routine cannot, so task now also queues an MDI that arrives while it waits for a kinematics switch. tests/kins-switch sends G43.4 H1 right after an abort, ten times. Under load, runtests -j 4 with 8 CPU hogs in a sandbox, it failed 28 of 40 runs without the change and passed 40 of 40 with it. The full runtests suite passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An abort routine that selects a kinematics, G13.1 in ON_ABORT_COMMAND,
runs inside the interpreter at once, but its switch reaches motion later,
and until it has landed the interpreter is back on the type motion still
runs. An MDI arriving in that wait was read straight away under the old
type: G43.4 H1 sent right after an abort found the interpreter already on
the primary kinematics, queued no switch, and left G43.4 active with
motion in identity.
A G12.1 or G13.1 in a program or MDI line sets the wait flag, which holds
an MDI back. The abort routine cannot, so task now also queues an MDI that
arrives while it waits for a kinematics switch.
tests/kins-switch sends G43.4 H1 right after an abort, ten times. Under
load, runtests -j 4 with 8 CPU hogs in a sandbox, it failed 28 of 40 runs
without the change and passed 40 of 40 with it. The full runtests suite
passes.