LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.75k stars 1.14k forks source link

Axis DRO not updating #2839

Closed cakeslob closed 6 months ago

cakeslob commented 6 months ago

Hello, a user on the forum raised this issue, which I have known about, and experienced before.

The Axis DRO tab does not update when the tab is raised. After the first time the DRO tab is raised and lowered, the DRO coordinates do not update unless commanded to. So a situation can arise when you move a joint in Preview tab, and switch to the DRO tab, the coordinates are not updated to reflect current position.

Can anyone else verify this issue? I do not think is has been fixed. Im using an older linuxcnc, 2.9pre, but another user raised this issue so I will assume it is not fixed.

I am deficient in computer hacking prowess, so I do not know exactly how to fix this. I think it will be something like this, but I dont know how to pass the command properly

${pane_top}.right itemconfigure numbers -raisecmd "[redraw_dro];"

Here are the steps I follow to reproduce the issue:

    • Open preview, move, do what ever
    • Open DRO, at this point they are synced
    • Open Preview, move 5mm
    • Open DRO, at this point the DRO should be 5mm behind the Preview
    • Press Top view (or any view ) button from the toolbar, and watch the DRO fix itself

This is what I expected to happen:

DRO tab to read the same position as preview DRO

This is what happened instead:

DRO remains un-updated when the tab is raised, displaying potentially incorrect position

phillc54 commented 6 months ago

Could you try this patch to see if it fixes the issue. axis_dro_update.patch

andypugh commented 6 months ago

Do you need help with how to apply and test the patch?

Sigma1912 commented 6 months ago

Seems to have worked out: https://forum.linuxcnc.org/38-general-linuxcnc-questions/51242-axis-2-9-2-position-in-preview-dro-tabs-aren-t-in-sync-bug?start=0#290023