QTvcp copy Error

More
12 Jun 2023 06:43 #273371 by phillc54
Replied by phillc54 on topic QTvcp copy Error
There is an update on the way to allow keybind changes via a user command file as described here:
linuxcnc.org/docs/devel/html/gui/qtvcp.h...cp:modifying-screens

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

More
12 Jun 2023 07:35 #273372 by phillc54
Replied by phillc54 on topic QTvcp copy Error
A bit more hacking has revealed that the update isn't required, you should be able to do it from a user command file and not need to copy the handler file.

Sample:
import types
from qtplasmac_handler import KEYBIND as KB

def on_keycall_Any(self, event, state, shift, cntrl):
    s = 'pressed' if state else 'released'
    print(f'space is {s}:\nstate: {state}\nshift: {shift}\ncntrl: {cntrl}\n')

KB.add_call('Key_Any', 'on_keycall_Any')
self.on_keycall_Any = types.MethodType(on_keycall_Any, self)

KB.del_call('Key_R')

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

More
12 Jun 2023 09:30 #273378 by Samas322
Replied by Samas322 on topic QTvcp copy Error
Oh nice! I already tried to make a user command file but wasnt able to load it in qtplasmac by adding USER_COMMAND_FILE = keyboard.py... in the display section of the .ini file. But i was able to create user_periodic.py and this file load perfectly but i tested for adding keyboard shortcuts but it never worked.. probably due to my low level programming skills..  but i will try it with your sample file! The only things im still not sure how to implement in this file is some timers...?

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

More
12 Jun 2023 09:44 #273379 by phillc54
Replied by phillc54 on topic QTvcp copy Error
You would need to import the timer, something like:
from PyQt5.QtCore import QTimer
 
The following user(s) said Thank You: Samas322

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

More
12 Jun 2023 10:21 #273383 by Samas322
Replied by Samas322 on topic QTvcp copy Error
Ok good i'll try this this afternoon! Thanks!

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

More
12 Jun 2023 10:25 - 12 Jun 2023 12:14 #273384 by Samas322
Replied by Samas322 on topic QTvcp copy Error
Also i noticed few bugs, when you do cut recovery and align with the laser then restart the cut the torch will probe down normaly then start and made a weird move in z and never start moving in xy. Even with the arc ok.

And some time when you do a framing with the laser the torch wont probe when you hit cycle start after the framing. You need to power off qtplasmac then power on to continue.
Last edit: 12 Jun 2023 12:14 by Samas322.

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

More
12 Jun 2023 15:32 #273398 by snowgoer540
Replied by snowgoer540 on topic QTvcp copy Error

Also i noticed few bugs, when you do cut recovery and align with the laser then restart the cut the torch will probe down normaly then start and made a weird move in z and never start moving in xy. Even with the arc ok.

And some time when you do a framing with the laser the torch wont probe when you hit cycle start after the framing. You need to power off qtplasmac then power on to continue.


Thanks for the bug reports. I've not noticed either of those, but step 1 for squishing bugs is being able to reproduce the, so I will try to reproduce them. Do you find that these happen consistently, or sporadically?

I ask because I've recently used cut recovery and align with the laser, and I didnt have any issues. So if you are getting it consistently can you either make another video, or give the exact steps to reproduce?

Same with the framing. I use framing every time I use my table and I've not run into that one yet.

I may reach out with more questions as I get time to look into it.

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

More
12 Jun 2023 16:11 #273400 by Samas322
Replied by Samas322 on topic QTvcp copy Error
For the cut recovery it append every time for me i will do a video when i get home. For the framing it did not happened consitently. I dont know if i did something different when it happened but i'll try to figure it out. 
The following user(s) said Thank You: snowgoer540

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

More
12 Jun 2023 22:18 - 12 Jun 2023 22:21 #273426 by Samas322
Replied by Samas322 on topic QTvcp copy Error
The cut recovery bug that i tell you. The bug of framing did not happend but i'll try to replicate it and inform le you as soon as i found something!

Last edit: 12 Jun 2023 22:21 by Samas322.

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

More
12 Jun 2023 22:39 #273427 by tommylight
Replied by tommylight on topic QTvcp copy Error
Probably recovery code adding another M3 somewhere?

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

Moderators: snowgoer540
Time to create page: 0.288 seconds
Powered by Kunena Forum