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.78k stars 1.14k forks source link

gmoccapy: wrong unit in gremlin DRO when machine units are inch #1997

Closed hansu closed 11 months ago

hansu commented 2 years ago

When starting gmoccapy with

LINEAR_UNITS = inch

and

RS274NGC_STARTUP_CODE = G20

the DRO in gremlin shows mm. Switching to G21 and then back to G20 makes the correct unit in the gremin DRO appear.

See: https://forum.linuxcnc.org/gmoccapy/46799-preview-in-mm-while-dro-s-are-in-inch#251168

gmoccapy commented 11 months ago

I am not able to reproduce this behavior, it has been solved somehow. I close this issue, if the problem does occur again, it may be reopened

hansu commented 11 months ago

Did you try with 2.8?

hansu commented 11 months ago

Yes, in 2.8.4 this issue is still present, not in 2.9:

issue1997_Linuxcnc2 8 4

gmoccapy commented 11 months ago

This is solved, I do not know who fixed this issue, but i is solved.

hansu commented 11 months ago

I tried with the latest commit on the 2.8 branch...

gmoccapy commented 11 months ago

@hansu ; I do not have any computer here in Stuttgart supporting Python2, to check this issue. If it still poersist, please reopen and fix.

Should be only comparing both gmoccapy files from 2.8 and 2.9

Norbert