qtvcp issues

More
19 Nov 2018 07:54 #120979 by racedirector
Replied by racedirector on topic qtvcp issues
Thanks Chris

My thinking was to just design a new screen to sit over the top of the already coded PHP file, I would use the same control names that Torch does. I was originally going to to do this in glade but seeing as you guys are making brilliant progress with QT I thought I might give that a go instead.

Cheers

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

More
19 Nov 2018 13:52 #120991 by cmorley
Replied by cmorley on topic qtvcp issues
'git clone -b qt5vcp_py2 github.com/LinuxCNC/linuxcnc.git qt5vcp_py2'

hmm that doesn't sound right. You shouldn't have to _clone_ qt5vcp_py2...as it's a branch of linuxcnc. You clone linuxcnc the project.

Can you gitk qt5vcp_py2 and tell me what the top commit message says?
Should say 'qtvcp -versa_probe ongoing work'

Also can you tell me what 'git remote' tells you.

Chris M

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

More
19 Nov 2018 13:54 #120992 by cmorley
Replied by cmorley on topic qtvcp issues
This shows the latest commits pushed to linuxcnc's github remote:
github.com/LinuxCNC/linuxcnc/commits/qt5vcp_py2

Chris M

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

More
19 Nov 2018 19:07 - 19 Nov 2018 19:26 #121017 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
Chris

gitk tells me that I'm up to date with it showing: qtvcp -versa_probe ongoing work

I have noticed a problem with: 'versa_probe_plugin.py'
This never compiles into .pyc which is likely the problem.



I usually ignore all the missing Icon error messages when the designer loads. in the middle of them there is:

[QtDesigner.QTVCP.WIDGETS.MACRO_WIDGET][DEBUG] Exception loading Macros: (macro_widget.py:307)
Traceback (most recent call last):
File "/home/cnc/linuxcncDev/lib/python/qtvcp/widgets/macro_widget.py", line 268, in _findMacros
for f in os.listdir(path):
OSError: [Errno 2] No such file or directory: 'None'
[QtDesigner.QTVCP.WIDGETS.MACRO_WIDGET][DEBUG] Macros Found: None (macro_widget.py:164)
[QtDesigner.QTVCP.WIDGETS.MACRO_WIDGET][DEBUG] Exception loading Macros: (macro_widget.py:307)
Traceback (most recent call last):
File "/home/cnc/linuxcncDev/lib/python/qtvcp/widgets/macro_widget.py", line 268, in _findMacros
for f in os.listdir(path):
OSError: [Errno 2] No such file or directory: 'None'
[QtDesigner.QTVCP.WIDGETS.MACRO_WIDGET][DEBUG] Macros Found: None (macro_widget.py:164)

This is likely not related to the versa_probe not showing up issue.
Attachments:
Last edit: 19 Nov 2018 19:26 by auto-mation-assist. Reason: Removed widgets_plugin.py note

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

More
19 Nov 2018 21:31 #121026 by cmorley
Replied by cmorley on topic qtvcp issues
The MACRO error is expected and relatively normal. It just didn't find an INI setting for macro subroutines - because there is no INI for a widget in deaigner.

I fired up one of my computers and pulled in the new changes. This is a computer I don't used for development so is pretty clean -codewise.
It showed all widgets no problem.

can you post the file qtvcp_plugin.py.
there should be an entry 'from qtvcp.plugins.versa_probe_plugin import VersaProbePlugin'
If there is then this file isn't being called for some reason.
Then I would look at your designer plugin link to see what it is linked to.

Chris M

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

More
19 Nov 2018 21:41 #121028 by cmorley
Replied by cmorley on topic qtvcp issues

Thanks Chris

My thinking was to just design a new screen to sit over the top of the already coded PHP file, I would use the same control names that Torch does. I was originally going to to do this in glade but seeing as you guys are making brilliant progress with QT I thought I might give that a go instead.

Cheers


Hmm maybe I'm not understanding... PHP file?
I don't know PP's file structure, I know it's a little different from linuxcnc.
QtVCP touches (and requires) some python modules such as HAL and hal_glib - I'm not sure if PP even has these files.
It would take a little effort to get it working I think - not huge but it would take some experience - hard for me to say as I have done nothing with PP other then look in an old file structure.

Chris M

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

More
20 Nov 2018 00:11 #121031 by racedirector
Replied by racedirector on topic qtvcp issues
Whoops, I meant python file, not php.

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

More
20 Nov 2018 00:35 #121032 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
Chris,

I have been working on getting some things copied to the computer that actually controls my machine.
I commented out all the hal pins that are not available yet so that it would load. Now working on eliminating some minor errors.
A file is attached with the errors I need to resolve. It is finding the macros now.

In my original post I had listed the qtvcp_plugin.py file as not compiling by error. I later removed it from my post.
I have attached it just in case and the versa_probe_plugin.py which does not compile. I can also try to figure why that is.
Attachments:

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

More
20 Nov 2018 04:41 #121039 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
I was able to get my error messages cleared and able to home the machine. Its progress.

I found my missing change files and added the on_abort.ngc file from the sim area. I think I pulled it out of axis but there are multiple locations to obtain it.

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

More
20 Nov 2018 06:02 - 20 Nov 2018 06:03 #121042 by auto-mation-assist
Replied by auto-mation-assist on topic qtvcp issues
I'm running into a problem that is slowing down my progress a bit. Its a problem between logic states for the created hal pins within qtvcp and those developed in the handler directly from actual state of the buttons.

In my handler I have this code but the only important thing is that the button is either pushed in or not pushed in. I have added some print statements for testing. The print statements show that the button states are correctly determined, as does the logic that uses this function.

The problem with the hal pins is that they do not remain in the proper state. The hal pins will flash the correct 'pushed' in state and then clear to the 'not' pushed in state. As long as the mouse button is held down the states of the hal pins is correct. Thus the pins appear to clear on mouse button release. The buttons are checkable and autoExclusive.

Code:
def pbtn_jog_mode_position_toggle(self,pressed):
if pressed:
print "Pressed"
self.jog_mode=1 #position
self.w.stackedWidget_5.setCurrentIndex(1)
if self.jog_slow_fast==0: # slow jog
self.jog_rate_selected_out=self.jograte_slow_position_value
if self.jog_slow_fast==1: # fast jog
self.jog_rate_selected_out=self.jograte_fast_position_value
else:
print "Not Pressed"

Button state 'darker color is 'pushed in':



Hal show for these two buttons show that the state is incorrect.

Attachments:
Last edit: 20 Nov 2018 06:03 by auto-mation-assist.

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

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