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
Mesa Encoder is latching quad errors when quad-error-enable is FALSE. #2860
Comments
@pcw-mesa Do you agree that this is wrong behaviour? |
Yes, it's a race/sequence error in the driver and I can duplicate it. |
Should be fixed: 4d0e948 |
This fix has gone into master. Should it also be in 2.9? |
Yes, just pushed in 2.9 |
Thanks |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://forum.linuxcnc.org/27-driver-boards/41273-hostmot2-encoder-documentation#291356
Here are the steps I follow to reproduce the issue:
halrun_encoder_test.zip
This is what I expected to happen:
Should NOT trigger a quad error as the quad error is supposed to be cleared when quad-error-enable is FALSE.
This is what happened instead:
halcmd: hm2/hm2_7i92.0: Encoder 0: quadrature count error
When UI is running this will pop up a dialog. On my machines using single ended glass scales the quad error occasionally pops up the first time I set quad-error-enable TRUE. I have the quad error triggering an estop and when I clear this, I can proceed. I can pulse quad-error-enable (before estop) but I still get the quad error dialog from hostmot2.
Problem has been around a long time.
I first noticed it back in 2021 but I did not understand exactly what was going on and just lived with the inconvenience of an occasional extra estop reset during startup. Fixing this bug would allow quad error detection to ignore any startup transients.
Information about my hardware and software:
Description: Debian GNU/Linux 12 (bookworm)
Linux debian 6.1.0-16-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux
Binary from 2.9.2 iso.
Occurs with Mesa 7i92+7i85S and 7i96+7i85S
The text was updated successfully, but these errors were encountered: