Jerky Jogging (QTPlasmaC)

More
23 Dec 2020 18:55 #193003 by tommylight

I have found that different distros may install qt in directories different from what pyqt expects. Sometimes, you need to figure out where python is searching for it's libraries. No doubt a huge PITA but not necessarily qt's fault.

Yup, had a run at it also, but to no avail. This is the state of Python on my main PC after a night of trying to get thins going:
Attachments:

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

More
23 Dec 2020 19:44 #193008 by hottabich
Replied by hottabich on topic Jerky Jogging (QTPlasmaC)

I added it at line 318. If that's correct, it's not the issue as it didn't change the jog behavior.

Thanks though!

Sorry, see your file qtplasmac_handler.py is possible?

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

More
23 Dec 2020 21:19 #193027 by snowgoer540

Does it coincide with graphics display and keyboard jogging?

The graphics display takes a lot of processing power.

That was my initial thought, because it doesnt do it when you're off the MAIN tab. However, I dont think so... for two simple reasons (albeit maybe bad logic):
1. It does have the issue with the GUI jog arrows on the MAIN tab.
2. Everything works fine in Axis, and I believe the preview stuff is essentially the same.


Sorry, see your file qtplasmac_handler.py is possible?


You can find it here: github.com/LinuxCNC/linuxcnc/tree/master...cp/screens/qtplasmac

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

More
23 Dec 2020 21:20 #193029 by snowgoer540

I have found that different distros may install qt in directories different from what pyqt expects. Sometimes, you need to figure out where python is searching for it's libraries. No doubt a huge PITA but not necessarily qt's fault.

Yup, had a run at it also, but to no avail. This is the state of Python on my main PC after a night of trying to get thins going:

I definitely didn't have this problem... i used one of beagle's 19.2 iOS's from probably a year ago. QTVCP just worked.

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

More
23 Dec 2020 21:52 #193032 by hottabich
Replied by hottabich on topic Jerky Jogging (QTPlasmaC)
Try to replace this piece of code
if flag:
                if isinstance(receiver2, EDITOR):
                    # if in manual do our keybindings - otherwise
                    # send events to gcode widget
                    if STATUS.is_man_mode() == False:
                        if is_pressed:
                            receiver.keyPressEvent(event)
                            event.accept()
                        return True
                elif is_pressed:
                    receiver.keyPressEvent(event)
                    event.accept()
                    return True
                else:
                    event.accept()
                    return True
        if event.isAutoRepeat():return True
or add the bottom line.
The following user(s) said Thank You: snowgoer540

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

More
23 Dec 2020 22:46 #193035 by snowgoer540
a little confused about the tabbing.

Is this right:
            if flag:
                if isinstance(receiver2, EDITOR):
                    # if in manual do our keybindings - otherwise
                    # send events to gcode widget
                    if STATUS.is_man_mode() == False:
                        if is_pressed:
                            receiver.keyPressEvent(event)
                            event.accept()
                        return True
                elif is_pressed:
                    receiver.keyPressEvent(event)
                    event.accept()
                    return True
                else:
                    event.accept()
                    return True
                if event.isAutoRepeat():return True

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

More
24 Dec 2020 02:06 #193051 by phillc54
Replied by phillc54 on topic Jerky Jogging (QTPlasmaC)
I had a bit of a look at this today and the qtplasmac code was a bit different to qtdragon. I modified the code so it was similar to qtdragon and it is now also similar to qtaxis.

It seems that the event.isAutoRepeat() is a bit hit and miss in its capturing of repeats. At random times it will pass through a continuous stream of keypresses when a jog key held down.

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

More
24 Dec 2020 02:23 #193052 by cmorley
Replied by cmorley on topic Jerky Jogging (QTPlasmaC)
try;
if event.isAutoRepeat():
    event.accept()
    return True

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

More
24 Dec 2020 02:25 #193053 by phillc54
Replied by phillc54 on topic Jerky Jogging (QTPlasmaC)
Still the same. :(

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

More
24 Dec 2020 02:33 #193054 by phillc54
Replied by phillc54 on topic Jerky Jogging (QTPlasmaC)
I played around with the repeat delay and repeat speed in the system keyboard settings and that had no effect.

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

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