Gmoccapy - A new screen for linuxcnc

More
9 years 1 month ago #99749 by newbynobi
I just pushed a bugfix for the DRO Size bug in lathe mode reported from Partic T.
Thanks Patric for reporting.

The bug fix was applied to 2.7 and master.

Norbert

P.S. Next will be the documentation update for master

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #103544 by kjacobs
Hello,
when I am using a non-integer G54 offset, the preview is offset by the non-integer part of the offset compared to the tool trace (see attached image ...offset1.png) With integer G54 coordinates, the offset is gone (..._no_offset.png). I observed this with gmoccapy 1.5.8 on lcnc 2.7.11 and with gmoccapy 2.3.3.2 on lcnc 2.8.0~pre. Am I doing something wrong or is this a known issue?
Greetings,
Karl

P.S. there is no offset when using the axis GUI
P.P.S found the solution: this happens only in the LANG=de_DE.utf8 setting and disappears in LANG=en_US.utf8, so it seems to be a mixup in the decimal delimiter evaluation. Sorry for the "spam", but it still looks a bit buggy to me.
Last edit: 8 years 10 months ago by kjacobs. Reason: P.S. addition, solution

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #103631 by andypugh
This is interesting (And a little surprising as gmoccapy is a German GUI :-)

Can you try one of the sim/axis configs and see if the same problem exists there? I think it probably will as both use the same preview widget (hal_gremlin)

If it does, then I think it is something for the bug tracker:
github.com/LinuxCNC/linuxcnc/issues

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #103648 by kjacobs
This German is surprised too :)
Axis is actually fine with de_DE.utf8, as I said in my P.S. It seems to be an issue of gmoccapy only. Actually, gmoccapy shows a period as the decimal separator everywhere inspite of the de_DE locale setting (and even complains about G0 X10,5), but the G5X page shows commas and gets confused with a period.

A quick fix is of course to set LC_NUMERIC=en_US.utf8 or LC_NUMERIC=C and leave the rest of the locale settings as is.

Maybe the german author of gmoccapy can chime in sometime.
Last edit: 8 years 10 months ago by kjacobs. Reason: typo

Please Log in or Create an account to join the conversation.

  • Weiler810T
  • New Member
  • New Member
More
8 years 10 months ago #103651 by Weiler810T
Replied by Weiler810T on topic Gmoccapy - A new screen for linuxcnc
My Weiler Lathe with Sinumerik 810t I have to go too G0 X5.0 Z-1.0 nix shows commas ;)

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #103732 by newbynobi

This German is surprised too :)
Axis is actually fine with de_DE.utf8, as I said in my P.S. It seems to be an issue of gmoccapy only. Actually, gmoccapy shows a period as the decimal separator everywhere inspite of the de_DE locale setting (and even complains about G0 X10,5), but the G5X page shows commas and gets confused with a period.


Hallo,

That is the first hint to go on searching the offset in the preview. If that is really a "komma" bug, it should be possible to find. Could you please test if the offset also happen with gscreen?

IMHO Axis uses a slightly different preview but gscreen and gmoccapy do share the same code.

Unfortunately I must tell you, that I will not invest too much time in this, as actually I am building gmoccapy to support 9 axis and at the same time, I am separating GUI and handling code. This will result in gmoccapy 3.0 or even "minos" (the future replacement).

You may ask why to change all the code? Because after this it is much easier to change the GUI part and replace also the underlaying widget base, i.e. from glade to Qt.

Norbert
The following user(s) said Thank You: giz

Please Log in or Create an account to join the conversation.

Moderators: newbynobi, HansU
Time to create page: 0.368 seconds
Powered by Kunena Forum