Error in tool_offsetview.py

More
21 Oct 2023 19:38 #283455 by MarkoPolo
After the last changes, the error does not appear, but the speed sliders are set to zero.
The only solution I have found so far is to delay the launch of qtdragon. A delay of 1.5 seconds solves the problem.
The only downside is that qtdragon takes 1.5 seconds longer to start, but it's not a big problem.
I think it could be used as a temporary solution.  
Attachments:

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

More
22 Oct 2023 17:19 #283517 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Are you using master? There is an ongoing problem with a race condition.
github.com/LinuxCNC/linuxcnc/issues/2700

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

More
22 Oct 2023 18:50 #283523 by MarkoPolo
Yes, I use master. This solution using time.sleep(1.5) works very well. Maybe it will be useful to someone until the problem you are reporting on is resolved.  

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

More
31 Oct 2023 01:47 #284153 by snowgoer540
I just pushed a commit that should take care of this race condition. Feel free to remove the sleeps you've added to the handler, etc. and give it a try. Let me know if you see any issues.

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

More
31 Oct 2023 19:25 #284205 by MarkoPolo
Yes, now after updating to the latest version it works properly, without the need to delay GUI loading.

There is one more problem in gtdragon, possibly unrelated to the above problem. The 50% and 100% buttons next to the spindle speed slider do not work. I also checked version 2.9.1 running from the ISO installer and the same problem occurs.

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

More
01 Nov 2023 05:48 #284238 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I pushed the fix to 2.9 - there is a conflict in master so I can't move it to there yet.

The two action button's property 'joint_number' needs to be set to 0 instead of -1

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

More
13 Nov 2023 23:19 #285322 by MarkoPolo
Hi Chris.

I noticed that when I press the "go to sensor" button in the "offsets" tab
the entire screen is frozen, you can't see the speed or position progress in DRO. (in qtdragon, of course).
I corrected two lines in the handler file in the "btn_goto_sensor_clicked" function and it works fine.
Can you check if this is correct and make corrections if necessary?
Changes in the screenshot.
Attachments:

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

More
15 Nov 2023 07:17 #285467 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
Yes I think that change is fine - I'll do some more testing though.

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

More
07 Jan 2024 22:01 #290150 by MarkoPolo
After adding five axis to qtdragon , the "go to zero" buttons are not available. Maybe it's a good thing that they are not available, but this functionality would be useful.
Could you add this function to the "ref x,y..." button menu so that it is available for each axis?
Another idea is to convert the fields with axis letters on the left side of DRO into buttons and make room in the drop-down menu for your own macros specific to individual axes.
Attachments:

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

More
07 Jan 2024 22:28 #290152 by cmorley
Replied by cmorley on topic Error in tool_offsetview.py
I don't like the idea of adding it to the reference setting button.
It's unrelated to reference setting and to easy to mistakenly select.

I can't really add the go to zero button back but you could make an INI based macro button for it. would that work for you?

I didn't fix the go to sensor behavior did I - sorry about that.

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

Moderators: cmorley
Time to create page: 0.392 seconds
Powered by Kunena Forum