Rotary Encoder rest counting in pycp interface after 360?
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
08 Jan 2022 10:39 #231103
by hitchhiker
hi... i start building a pyvcp interface for my spindle.
now all works but... when i rotate 2 full rotations it shows me 720 degree.. i want that it shows me after 360° 1° and not 361°.
only in the pyvcp!
how to solve this?!
thanks
now all works but... when i rotate 2 full rotations it shows me 720 degree.. i want that it shows me after 360° 1° and not 361°.
only in the pyvcp!
how to solve this?!
thanks
Please Log in or Create an account to join the conversation.
08 Jan 2022 13:52 #231113
by cmorley
Replied by cmorley on topic Rotary Encoder rest counting in pycp interface after 360?
probably need to modify the code here:
github.com/LinuxCNC/linuxcnc/blob/master...hon/pyvcp_widgets.py
github.com/LinuxCNC/linuxcnc/blob/master...hon/pyvcp_widgets.py
Please Log in or Create an account to join the conversation.
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
08 Jan 2022 23:10 #231193
by hitchhiker
Replied by hitchhiker on topic Rotary Encoder rest counting in pycp interface after 360?
thanks but dont know what is to change.
i am complete new to linux...
i was thinking someone can help me to get it work. i know it must work....
rotation above 360° shows 1° degree and not 361°.
same when i rotate in the other direction after 0° i get 1° .. not .. 359°.
so can someone help me please.. zo understand?
thanks
i am complete new to linux...
i was thinking someone can help me to get it work. i know it must work....
rotation above 360° shows 1° degree and not 361°.
same when i rotate in the other direction after 0° i get 1° .. not .. 359°.
so can someone help me please.. zo understand?
thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.068 seconds