DRO widgets line edit resets on tiny changes of actual position on machines with feedback
Closed this issue · 4 comments
The new DRO widgets that allow mathmatical expressions to be filled in for DRO widgets are hard to use on machines that use feedback encoders, since these generally move about a tiny bit. A movement of 0.001mm, which in my case is only about a single encoder pulse, already causes the labels to reset whatever you typed in them.
In the attached video the issue is shown with probe_basic. I have already increased the update time in the YML file from 15ms to 150ms, yet this still makes it very hard to properly use the DRO widget as intended.
Video.mov
@FranseFrikandel yes, that is definitely an issue!
A good, simple to implement solution would be to pause updates if the line edit has focus.
Will work on this.
Possible resolution might be to stop updating the DRO widget when a user enters something, until either the user confirms and the mathmatical expression is executed, or the commanded position gets changed.
@FranseFrikandel yes, that is definitely an issue!
A good, simple to implement solution would be to pause updates if the line edit has focus.Will work on this.
Only potential issue I see in this is when a user with MPG clicks the line edit, then jogs his edgedfinder. The value in the widget will not be updated. Hence why I think forcing an update on change of the commanded axis position should probably be added.
Just wrote a potential fix. Will test on my own machine tomorrow and if it works will make a pull request for it.