Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostmot2 encoder quad error clear when disabled fix. #2870

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JTrantow
Copy link
Contributor

This change will reset the quad error when quadrature_error_enable is false. The previous commit fixed the problem for simple halrun scripts, but failed to fix the problem with complete configs running in linuxcnc.

@JTrantow
Copy link
Contributor Author

This change adds a call to hm2_encoder_force_write(hm2) whenever the quad-error-enable is false. In my configurations, I always enable so this extra function call only occurs when the machine is off. I suspect many/most other users don't enable the quad errors so this overhead needs to be evaluated.

@JTrantow
Copy link
Contributor Author

Made a mistake combining & operations.

@JTrantow JTrantow marked this pull request as draft January 30, 2024 04:55
@pcw-mesa
Copy link
Collaborator

pcw-mesa commented Jan 31, 2024

I cannot approve this change as it increases network load significantly (about 10% for a single encoder) ,
and I have been unable to duplicate the issue in current 2.9 or 2.10 on two different sets of hardware
(7I96S encoder input and 7I92+7I85S)

@pcw-mesa
Copy link
Collaborator

I have finally been able to duplicate this, it only happens with more than 1 encoder is enabled
so I will look at the code when I get a chance.

@JTrantow
Copy link
Contributor Author

JTrantow commented Jan 31, 2024 via email

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.

None yet

2 participants