Skip to content

homing: an abort unhomes only the joints that had not finished homing - #4959

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:home-abort-unhome
Open

grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:home-abort-unhome

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

Since #3481 a homing abort stops every joint, which is right, but it also clears homed on every joint. Home X, then Y, then start Z and press Esc: X and Y lose their homed state too, although nothing moved them. The same happens inside a Home All: Z and Y have homed, X is far away, I stop, jog X closer, and then have to home everything again instead of only X. @c-morley asked about this in the #3481 review.

The abort now still stops every joint but clears homed only on the joints that were homing. Joints waiting for a later sequence group were already unhomed when the command started; joints that finished keep their homed state.

tests/home-dist homes joint 0 and fails the synchronized pair, once with a home of the pair alone and once with a Home All, and checks that joint 0 stays homed both times. Both checks fail without the fix.

Since e0c3b39 (LinuxCNC#3481) a homing abort stops every joint, which is
right, but it also clears homed on every joint. Home X, then Y, then
start Z and press Esc: X and Y lose their homed state too, although
nothing moved them. The same happens inside a Home All: Z and Y have
homed, X is far away, the operator stops, jogs X closer, and then has
to home everything again instead of only X.

The abort now still stops every joint but clears homed only on the
joints that were homing. Joints waiting for a later sequence group were
already unhomed when the command started; joints that finished keep
their homed state.

tests/home-dist homes joint 0 and fails the synchronized pair, once
with a home of the pair alone and once with a Home All, and checks that
joint 0 stays homed both times.
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