qtVCP not working for RPI 2.8 image

More
6 years 4 days ago - 6 years 4 days ago #187577 by mgmatteo
Sorry, I forgot the file..
Meanwhile I had some success!

Turnkey was to have the notification-daemon running in the background! thank you @cakeslob
In my opinion this should be a Critical output not a Warning as it mislead to think it's something.. well not critical ;-)

So I was able to start qtdragon_xyz even if there are still some warnings in the background.
It would be nice to sort them out just to have a base configuration clean.

I then tried qtdragon_xyzy (that's my machine) and it breaks. Attached the log.
It said something about a missing file (qtdragon_xyz ) so I decided to do this:
- downloaded QtDragon-master, Probe-main and unzipped in /configs/qtdragon
- downloaded vtk-master and unzipped in the same folder (overwriting some of the previous files).
Now if I launch the example configuration qtdragon_xyzy it brakes in a different position
Code:
AttributeError: 'VersaProbe' object has no attribute 'input_xy_clearance'
I have to figure it out where this values go, but I think it would be nice to have the vtk master setup in a way that it works with all the examples so that we have a starting point to explore the penalization of those configs.
Sorry for my English... I hope that what I just wrote doesn't need to be debugged :-D
Last edit: 6 years 4 days ago by mgmatteo.

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

More
6 years 4 days ago #187590 by persei8

[QTvcp.QTVCP.QT_MAKEPINS][WARNING] Preference instance error: Cannot find directory: /home/pi/linuxcnc/configs/qtdragon for preference file. (qt_makepins.py:55)

This one is because your config dir is called qtderagon, not qtdragon

[QTvcp.QTDRAGON_HANDLER][INFO] No valid probe widget specified (qtdragon_handler.py:270)

This one is likely because the xyzy.ini doesn't have a [PROBE] section. Copy it over from the xyz one. Valid entries are USE_PROBE = versaprobe or USE_PROBE = basicprobe. If you don't want the probe routines, leave it out.

It looks like it's going to work. Chris just pushed some updates to master so some adjustments will need to be made if you update and upgrade. In the meantime, I will try to fine tune everything. Keep in mind, qtdragon with vtk on an rpi4 is NOT a finished product. It needs a proper graphics display widget. If you know OpenGL ES, this could be a project for you.
Jim

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

More
6 years 4 days ago #187593 by mgmatteo
My bad... Typo it's always a bad enemy....
Fixed that and now it loads the preferences file, but still no luck with the probe.

[PROBE] section is present, the problem is an attribute
I tested both with different results.
versaprobe --> AttributeError: 'VersaProbe' object has no attribute 'input_xy_clearance'
basicprobe --> AttributeError: 'BasicProbe' object has no attribute 'lineEdit_probe_diam'
I read the qtdragon manual but I did't find a hint for this.
In qtdragon.pref there is a section
Code:
[PROBE OPTIONS] Probe tool = 90 Probe rapid = 100.0 Probe max xy = 10.0 Probe max z = 2.0 Probe extra depth = 0.0 Probe step off = 10.0 Probe feed = 50.0 Probe xy clearance = 10.0 Probe z clearance = 10.0 Probe edge width = 10.0
Should I put more info in a different place?

PS, when you say "Chris just pushed some updates to master" you mean 2.9?
I'm on 2.8 official image.
Unfortunately I don't even know what's OpenGL ES :-D my only help to the community is to help sorting out a procedure to have qtdragon for rpi4 working out of the box. I mean a fully featured config example..

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

More
6 years 4 days ago - 6 years 4 days ago #187598 by persei8
Yes, master is 2.9. The rpi4 business is not part of the official 2.8 release. There was a major update to the probe programs. To get things working for now, just leave that section out as it has no bearing on the overall function. The buildbot sometimes takes a couple days to update the latest developer pushes so it may be a couple days before I can sort everything out.

Jim
Last edit: 6 years 4 days ago by persei8.

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

More
6 years 4 days ago #187601 by mgmatteo
OK thank you, just a last question because I'm a little confused now.
2.8 is the current stable release, and the one used for the official pi image, and that's what I tested with qtdragon.
In the 2.9 master there are significant updates regarding the probe functionality.
To have the probe functionality working will I have to switch to 2.9 or you will work in the 2.8 as well?
Thanks again for all your help

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

More
5 years 11 months ago #188332 by persei8
It's been a week and buildbot is still not updated. The last one was Oct. 27.
I can't say if the RPi image is an official part of version 2.8. I only know that the standard implementation of OpenGL graphics doesn't work. If you use qtpyvcp, it should work because it uses the VTK graphics. What I posted to my github is an adaptation of VTK for use with qtvcp which is definitely not part of 2.8 or 2.9. Probably never will be part of anything to do with linuxcnc because it is currently a personal side project. However, you should be able to use the updated probe function in 2.8 but I won't know for sure until buildbot starts working again. My suggestion is that if you want to use an Rpi as your controller, install qtpyvcp and probe_basic. I hope this clears it up.
Jim
The following user(s) said Thank You: mgmatteo

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

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