#hazzy Logs
Jul 13 2020
#hazzy Calendar
12:17 AM Joco[m]: 👍️
03:16 AM Joco[m]: hands: I got around to running that faster travel test. But first I found some stress in the mechanical system and did a little bit of tweaking/improving on that. Then rebuilt the screw compensation file. So ..... First a test is 256 samples from 480mm to 0mm and then another 256 samples at the same commanded position but in reverse from 0mm to 480mm. Graphs are of error from commanded to measured per glass scales.
03:16 AM Joco[m]: Test 1 - travel = 150mm/min
03:17 AM * Joco[m] uploaded an image: x_test_pos-v7.png (21KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/fiESXMTJTcVPpjQBOPxYTMoB >
03:17 AM * Joco[m] uploaded an image: x_test_neg-v7.png (20KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/hKOngYjDvCqifPgFZtZLAVjc >
03:17 AM Joco[m]: Test 2 - travel = 300mm/min
03:17 AM * Joco[m] uploaded an image: x_test_pos-v8.png (21KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/KEuSaUXqRehGAHIqIeSVNxQy >
03:17 AM * Joco[m] uploaded an image: x_test_neg-v8.png (21KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/gXYWBXQvkTlJoiuFOYhWXaET >
06:22 AM hazzy-m: Joco: looks like extremely consistent results at both speeds
07:25 AM hands[m]: yup, very consistent... nice!
07:37 AM TurBoss: good morning
07:56 AM JT-Cave: morning
09:33 AM roguish[m]: morning............
09:41 AM hands[m]: @JT-Cave Before I go down a rabbit hole of refactoring, is there a good reason NOT to break the large reusable components (maybe even whole tabs) into self-encapsulated widget using .ui files? (see above)
09:41 AM roguish[m]: JT-Cave: hey, JT. check out this Vette (not the woman, she's the owner's wife)
09:41 AM * roguish[m] uploaded an image: image.png (1884KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/FpbbKxDvdygwQbACgmOfUWSx >
09:42 AM roguish[m]: my good buddy just took it down off of blocks and out of the barn where it's been for over 40 years......
09:42 AM roguish[m]: yes, those are factory side pipes............
09:56 AM hazzy-m: hands: I think it's a fantastic idea to break the UI up into discreet components, and it's not difficult
10:09 AM hazzy-m: There is an embedded UI widget that might help with that
10:09 AM hazzy-m: roguish: nice!!
10:18 AM hands[m]: no I got a sample working in like 20 minutes.... Probably mostly cut and paste from there.. I'll break a few components down (DRO, Jog come to mind first) and share out my branch on my fork for you guys to review.... probably need to coordinate the refactor if we do it so we are all sharing as much as we can between the different templates..
10:18 AM hands[m]: yah, it's pretty simple, I got a sample working in like 20 minutes.... Probably mostly cut and paste from there.. I'll break a few components down (DRO, Jog come to mind first) and share out my branch on my fork for you guys to review.... probably need to coordinate the refactor if we do it so we are all sharing as much as we can between the different templates..
10:26 AM hazzy-m: hands: awesome!
10:53 AM JT-Cave: roguish[m], nice
01:34 PM roguish[m]: JT-Cave: ok, this is way out........ https://newatlas.com/good-thinking/backpacks-chickens-mite-infestations/
02:44 PM Joco[m]: <hands[m] "yah, it's pretty simple, I got a"> Cool. Will be interested to see how that’s done. I have a custom UI for my wee mill (for 1280x1024 screen) that I want improve. Having key parts encapsulated in mini UIs could be quite helpful.
03:22 PM * JT-Shop should go get his leather shoes on when running the Samson
03:25 PM Joco[m]: <hazzy-m "Joco: looks like extremely consi"> hands: yup not bad. Homing is a real variable in this. That can cause the centre of the range to float around the zero line between homing references. These scales do not seem to be wired for indexes. It looks like they cheated out and used a 4 wire cable and not 5. Cose I can see 3 TTL inputs on the reader with 2 of the inputs hooked up to a single wire on the cable.
04:08 PM hands[m]: damn, if you had an Z/index pulse you could nail your homing..
04:23 PM Joco[m]: Yeah. I’m going to do some snooping. I have a strong suspicion that the scale/reader can handle the index pulse and that it is there. Just that they skimped on the wire. Going to look at the reader wiring on some other scales I have. Might just be a case of swapping the reader heads around. I don’t need index on my big mill. And if the heads are wired for it then just a case of swapping stuff around.
06:11 PM TurBoss: Hello, sup?¿
06:24 PM Joco[m]: Hi ya.
06:25 PM Joco[m]: * Hi ya. Work work work.
06:28 PM TurBoss: :)
07:00 PM TurBoss: hazzy: hello,
07:00 PM TurBoss: just found that the gcedit fails on firts file load,
07:00 PM TurBoss: margins eat text area but load other file fixes it
07:07 PM Joco[m]: TurBoss: is this the new qt based one?
07:07 PM TurBoss: yes
07:08 PM TurBoss: just testing
07:08 PM Joco[m]: Ok. If there is a list of bugs then can start squishing.
07:09 PM TurBoss: the branch is there
07:09 PM TurBoss: i just found that but hazzy should know more
07:10 PM TurBoss: branch is QPlainTexEdit
07:14 PM * TurBoss uploaded a video: gcedit.webm (1303KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/fdhvlmMOMWMPRgglEDAlCZAi >
07:39 PM hazzy-m: TurBoss: Thanks, I had not noticed that, hmm
07:39 PM TurBoss: just curious
07:47 PM hazzy-m: I can't duplicate :(
07:50 PM TurBoss: :O
07:50 PM TurBoss: can you open a large file just after boot?¿
07:50 PM TurBoss: 🤔
07:54 PM hazzy-m: it does not happen here, very strange
07:57 PM * TurBoss uploaded an image: Captura de pantalla de 2020-07-14 02-48-03.png (19KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/MUisDhNNKjWuANPcfEYekqep >
07:57 PM TurBoss: I'll try to fix
07:58 PM TurBoss: on my side
08:06 PM Joco[m]: TurBoss: what version of QT you running? I found different QT behaviours between Debian 9 and later version of linux
08:06 PM Joco[m]: just wondering of this could be a version quirk
08:06 PM Joco[m]: * just wondering if this could be a version quirk
08:07 PM TurBoss: maybe
08:07 PM TurBoss: just trying to figure wich version I have
08:08 PM Joco[m]: look at the number on the QT packages installed
08:08 PM TurBoss: ok
08:08 PM Joco[m]: it's just one variable to square away before diving deeper
08:09 PM TurBoss: 5.11.3
08:09 PM Joco[m]: hazzy: what you running? Are we on the same QT version?
08:10 PM TurBoss: mine is debian 10
08:11 PM TurBoss: i have many other versions of Qt installed but I'm unable to change betwen them with qtchooser
08:11 PM Joco[m]: if he's on Deb 10 then it will be same
08:11 PM TurBoss: Joco: you may like GammaRay Qt debugger just remembered
08:11 PM Joco[m]: I dev on Linux mint 19 but real machine is debian 9
08:12 PM Joco[m]: GammRay - will look at that
08:21 PM hazzy-m: TurBoss: you can see the Qt version but running `qtpyvcp --info`
08:21 PM * hazzy-m sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/HZlpkEvyBXmAuxCeOpEAZCLh >
08:21 PM TurBoss: cool ty
08:35 PM TurBoss: hazzy: I just noticed that there is no need to load a file
08:35 PM TurBoss: at boot cursor is not visible
08:36 PM TurBoss: only after write somethin stuff starts to show behind the margin
08:36 PM * TurBoss uploaded an image: Captura de pantalla de 2020-07-14 03-26-52.png (1KB) < https://matrix.org/_matrix/media/r0/download/jauriarts.org/tqDGQzWMzGVlKYDqAGhJycGK >
09:00 PM * hazzy-m uploaded a video: gcode-edit-line.mp4 (362KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/kBVlaWwYPNmtQVwIAcnnRIEU >
09:00 PM TurBoss: broken on mini
09:00 PM TurBoss: maybe something with qss?
09:00 PM hazzy-m: I tested in mini too
09:01 PM hazzy-m: I can't figure it out
09:01 PM TurBoss: no worries
09:11 PM TurBoss: https://gist.github.com/Axel-Erfurt/5d72e4c80d6eb83d7af5404abd803845
09:48 PM hazzy-m: TurBoss: ja, das ist gut!
09:49 PM hazzy-m: hands: if you don't mind me asking, what part of the world are you in?
09:49 PM hazzy-m: you seem to be on a US time zone
09:49 PM hands[m]: Ok so this works... Just drop it on a form and it plays nice.. https://github.com/jhandel/probe_basic/tree/vertical_ui/widgets/vcp_jogging
09:49 PM hands[m]: US/Austin TX.
09:53 PM hands[m]: so couple of things there... 1) you got to add the Custom Controls you used to the bottom of the XML (though probably not an issue when you make it from the editor... (should proably make a "special" version of editvcp for widgets that would make sure everything wires up nicely.)
09:53 PM hands[m]: 2) I also started a bit of a naming convension because "actionbutton_43" is super frustrating ;-)... Using a modified hungarian/vb style [control type]_[controlName] approach.. so like z+ jog btn is actbtn_zplus.... I am completely flexible, on this, but I know it is helping me a lot with names that are not just numbers in the tree view....
09:53 PM hands[m]: Anyways, feel free to poke with a stick and tell me I am nutz 🙂
09:54 PM hands[m]: so couple of things there... 1) you got to add the Custom Controls you used to the bottom of the XML (though probably not an issue when you make it from the editor... (should proably make a "special" version of editvcp for widgets that would make sure everything wires up nicely.)
09:54 PM hands[m]: 2) I also started a bit of a naming convension because "actionbutton_43" is super frustrating ;-)... Using a modified hungarian/vb style [control type]__[controlName] approach.. so like z+ jog btn is actbtn_zplus.... I am completely flexible, on this, but I know it is helping me a lot with names that are not just numbers in the tree view....
09:54 PM hands[m]: Anyways, feel free to poke with a stick and tell me I am nutz 🙂
09:54 PM hands[m]: How about other folks.. where are are others from?
09:56 PM hazzy-m: hands: Fantastic! I use a similar naming convention, but then I rarely write any GUIs... I think that would be worth adding as a suggestion to the docs somewhere
09:58 PM hazzy-m: Ah, the great state of Texas! I am located in Atlanta GA, make it to TX quite frequently as we have a bunch of customers out there and I have family there and in NM
09:59 PM hands[m]: Oh really, nice my Wife grew up in New Mexico.
09:59 PM hands[m]: what parts of the solution do you focus on @hazzy?
09:59 PM hazzy-m: Lcvette is in NC, JT is in Missouri, TurBoss is in Spain and Joco in New Zealand, so people from all over
10:00 PM hands[m]: awesome.. quite the international croud..
10:00 PM hands[m]: crowd
10:01 PM TurBoss: :)
10:03 PM hazzy-m: I am the head bug introducer, and chief spammer lol
10:03 PM hazzy-m: I started this whole thing back in 2015 because I needed a better GUI for my little CNC mill project, and TurBoss has been helping since too long after that
10:03 PM hazzy-m: not too long*
10:04 PM * hands[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/dNmTOprNyHVXPbtNGXktHiXB >
10:05 PM hazzy-m: If you run pip install again it should pick up the widgets automagicaly
10:06 PM hands[m]: is that init script being built dynamically by something? hurm..... I figured it was just a step in the process of adding widgets..
10:07 PM hazzy-m: oh sorry, you do have to add to the init, bust if its in the init it should so up in designer automatically, I was thinking about the "you got to add the Custom Controls you used to the bottom of the XML" statement
10:08 PM hazzy-m: * oh sorry, you do have to add to the init, bust if its in the init it should show up in designer automatically, I was thinking about the "you got to add the Custom Controls you used to the bottom of the XML" statement
10:08 PM * Joco[m] is a newbie
10:09 PM hands[m]: oh your saying once install is run Qtdesigner should pick up the widgets without having to run editvcp? (editvcp does some serious environment setup before kicking off QTdesigner... that was why I was thinkging maybe an "editwidget" might be a worth while script to make based on editvcp)
10:16 PM hazzy-m: I attempted to add a "Edit embedded UI" context menu to designer a while but, I have up because of issues getting the file path, but if the widget has a python base class it should be a lot easier to get the information we need
10:17 PM hazzy-m: we might need a new widget base class for composite widgets (widgets based off of a separate UI file)
10:17 PM hazzy-m: then that base class could handle the edit actions
10:17 PM Joco[m]: that might be a good plan
10:17 PM hands[m]: That would make since.
10:17 PM Joco[m]: re separate base clase
10:17 PM Joco[m]: class
10:20 PM hazzy-m: hands: the JogControl widgets works great, no issues
10:20 PM * hazzy-m it barely able to stay awake
10:20 PM hazzy-m: night
10:22 PM hands[m]: Night! Glad it didn’t just work on my box 🙂
10:28 PM Joco[m]: nite
10:29 PM Joco[m]: lol - only 3:20pm here