Skip to content

homing.c: fix accumulation of HOME_OFFSETs when re-homing absolute encoders (2.9 backport) - #4341

Open
tzuohann wants to merge 1 commit into
LinuxCNC:2.9from
tzuohann:homing-3717-2.9
Open

homing.c: fix accumulation of HOME_OFFSETs when re-homing absolute encoders (2.9 backport)#4341
tzuohann wants to merge 1 commit into
LinuxCNC:2.9from
tzuohann:homing-3717-2.9

Conversation

@tzuohann

@tzuohann tzuohann commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of b7914b4 (#3774), which is on master but was never backported.
Fixes #3717 on 2.9.

With HOME_ABSOLUTE_ENCODER, HOME_SET_SWITCH_POSITION uses a constant
offset = home_offset instead of a difference, so every home adds it again:
the first home of a session is exact, the nth lands (n-1) x home_offset out.

Running in production here since 2026-08-01.

🤖 Generated with Claude Code

fix multiple homing of absolute encoders LinuxCNC#3717
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