#linuxcnc Logs
Oct 01 2024
#linuxcnc Calendar
12:35 AM lcnc-relay: <meisterdippel> moin
01:02 AM lcnc-relay: <vibram> hello
01:15 AM Deejay: moin
03:32 AM W1N9Zr1 is now known as W1N9Zr0
04:14 AM JT-Cave: morning
04:36 AM lcnc-relay: <Travis Farmer> Morning
04:41 AM Tom_L: morning
05:57 AM JT-Cave: https://www.youtube.com/watch?v=BW3v5iBuZEs
06:18 AM JT-Cave: https://github.com/jethornton/flexgui/commit/d677c997c58080d3169c0f939b70539333e7d6b0
06:30 AM JT-Cave: Tom_L, a couple of updates
06:47 AM Tom_L: i got the new angle subs done just need to test on a machine
06:47 AM Tom_L: added tooltips to the settings
06:49 AM Tom_L: YTs should help too
06:52 AM Tom_L: PR # 107 deb
06:54 AM JT-Cave: got it
06:54 AM Tom_L: added another setting for triangle base length
06:55 AM Tom_L: so those are fully adjustable
07:12 AM JT-Cave: hmm the forum seems to be down
07:16 AM lcnc-relay: <meisterdippel> what about the flexgui - robot frontend i'm waiting 😂
07:16 AM rdtsc-wk: just reconfigure the robot as a 6-axis milling machine, all set :)
07:18 AM lcnc-relay: <meisterdippel> https://www.dino-robotics.com/wp-content/uploads/2021/11/ZXRobotPanel2021-11-23-12-28-20.png
07:18 AM lcnc-relay: <meisterdippel> need something like this
07:19 AM lcnc-relay: <meisterdippel> with 6 sliders to move the each axis
07:20 AM JT-Cave: you can make that in Flex GUI
07:25 AM lcnc-relay: <meisterdippel> https://jauriarts.org/_matrix/media/v3/download/jauriarts.org/jrXvPoIOsDqZaEntacscqBJZ/axis.png
07:25 AM lcnc-relay: <meisterdippel> at the moment i use this ðŸ˜
07:45 AM lcnc-relay: <meisterdippel> i have install the debian package of flexgui
07:45 AM lcnc-relay: <meisterdippel> linuxcnc ~/linuxcnc/configs/flex_examples/xyz/xyz.ini works
07:46 AM lcnc-relay: <meisterdippel> linuxcnc ~/linuxcnc/configs/flex_examples/tom_sim/tom.ini
07:46 AM lcnc-relay: LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
07:46 AM lcnc-relay: Machine configuration directory is '/home/odippel/linuxcnc/configs/flex_examples/tom_sim'
07:46 AM lcnc-relay: Machine configuration file is 'tom.ini'
07:46 AM lcnc-relay: Starting LinuxCNC...
07:46 AM lcnc-relay: linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
07:46 AM lcnc-relay: Note: Using POSIX non-realtime
07:46 AM lcnc-relay: Found file(REL): ./sim.hal
07:46 AM lcnc-relay: Tom
07:46 AM lcnc-relay: setup_line_edits
07:46 AM lcnc-relay: Traceback (most recent call last):
07:46 AM lcnc-relay: File "/usr/bin/flexgui", line 259, in <module>
07:46 AM lcnc-relay: gui = flexgui()
07:46 AM lcnc-relay: ^^^^^^^^^
07:46 AM lcnc-relay: File "/usr/bin/flexgui", line 202, in init
07:46 AM lcnc-relay: startup.set_status(self)
07:46 AM lcnc-relay: File "/usr/lib/python3/dist-packages/libflexgui/startup.py", line 1367, in set_status
07:46 AM lcnc-relay: getattr(parent, key).setEnabled(value)
07:46 AM lcnc-relay: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
07:46 AM lcnc-relay: AttributeError: 'Pin' object has no attribute 'setEnabled'
07:46 AM lcnc-relay: Shutting down and cleaning up LinuxCNC...
07:46 AM lcnc-relay: task: 66 cycles, min=0.000010, max=0.010531, avg=0.007837, 0 latency excursions (> 10x expected cycle time of 0.010000s)
07:46 AM lcnc-relay: Note: Using POSIX non-realtime
07:46 AM lcnc-relay: LinuxCNC terminated with an error. You can find more information in the log:
07:46 AM lcnc-relay: /home/odippel/linuxcnc_debug.txt
07:46 AM lcnc-relay: and
07:46 AM lcnc-relay: /home/odippel/linuxcnc_print.txt
07:46 AM lcnc-relay: as well as in the output of the shell command 'dmesg' and in the terminal
07:48 AM rdtsc-wk: That was a lot of beeps lol... for text, try: https://paste.debian.net
07:53 AM JT-Cave: yeah ^^
07:53 AM lcnc-relay: <meisterdippel> sorry
07:53 AM rdtsc-wk: Tom's likely got his nose buried in some trigonometry at the moment, but he'll see it
07:53 AM JT-Cave: I do get that error with tom.ini so I'll track it down
07:54 AM lcnc-relay: <meisterdippel> mill_3_plot -> Overwrites -> TextLab... (should be 100%)
07:58 AM lcnc-relay: <meisterdippel> for key, value in parent.state_estop.items():
07:58 AM lcnc-relay: obj = getattr(parent, key)
07:58 AM lcnc-relay: if obj and hasattr(obj, "setEnabled"):
07:58 AM lcnc-relay: getattr(parent, key).setEnabled(value)
07:58 AM lcnc-relay: else:
07:58 AM lcnc-relay: print("ERROR....")
08:20 AM JT-Cave: I fixed it upstream from there
08:20 AM JT-Cave: just pushed
08:20 AM lcnc-relay: <meisterdippel> link to the commit ?
08:20 AM JT-Cave: the problem was Tom_L had the hal pin name the same as the radio button name so the hal pin name took over the rb name
08:21 AM lcnc-relay: <meisterdippel> ok
08:21 AM JT-Cave: https://github.com/jethornton/flexgui/commit/2192f8258a3b3ed248d9c5ef9fc4f55e79064454
08:24 AM lcnc-relay: <meisterdippel> is it possible to have a slider widget to move an axis ? with absolute positions
08:27 AM JT-Cave: yes, soon I'll add a hal slider
09:05 AM JT-Cave: Tom_L, I had to fix the tom.ui radio button object names
09:18 AM lcnc-relay: <Travis Farmer> JT: what does "print_states_cb" do? i found it in the example, but have not found what it does...
09:22 AM JT-Cave: https://www.youtube.com/watch?v=J_MTTXzYQ0M
09:22 AM JT-Cave: it was a debugging tool but it's not used any more
09:22 AM JT-Cave: https://www.youtube.com/watch?v=J_MTTXzYQ0M
09:22 AM * JT-Cave heads to town
10:04 AM lcnc-relay: <meisterdippel> i'm afraid i need something more complex, a slider that normally shows the position of a rotation axis and moves with it. but if you operate the slider with the mouse, it has to jog the axis
10:18 AM -!- #linuxcnc mode set to +v by ChanServ
10:19 AM lcnc-relay: <Travis Farmer> i am not even sure if LinuxCNC itself has the ability for positional feedback controls like that. JT would know more, but he headed to town.
10:22 AM lcnc-relay: <meisterdippel> it is possible !
10:27 AM lcnc-relay: <meisterdippel> the tricky part is only, if the mouse button is pressed, you should not update the position of the slider
10:32 AM lcnc-relay: <meisterdippel> the feed-overwrite slider in AXIS do more or less the same
11:10 AM JT-Cave: I don't see that in Axis the feed slider updates as you drag the mouse
11:11 AM JT-Cave: the jog functions are something you have to do in hal
11:15 AM JT-Cave: https://youtu.be/Jlk1ir0HDV0
11:16 AM JT-Cave: travis feel free to remove the "print_states_cb" and do a pr
12:09 PM lcnc-relay: <roguish> forecast changed again. today 108. tomorrow 110
12:10 PM rdtsc-wk: (melted) cheese and rice...
12:10 PM lcnc-relay: <roguish> went out for my ride at 68, got home hour and half later at 86
12:12 PM lcnc-relay: <meisterdippel> i have test the jog-slider, works 🙂 (with custom python plugin)
12:13 PM lcnc-relay: <meisterdippel> unfortunately flexgui does not run here on my ubuntu, otherwise I would have tried it too
12:13 PM rdtsc-wk: missing some package on ubuntu?
12:14 PM lcnc-relay: <meisterdippel> Ubuntu 22.04.2 LTS - too old 😦 need to install debian 12
12:15 PM lcnc-relay: <meisterdippel> but too lazy at the moment 🙂
12:15 PM lcnc-relay: <Travis Farmer> JT, PR #108 up, for print_states_cb
12:15 PM lcnc-relay: <meisterdippel> https://youtube.com/shorts/tg_DeSiOY8o
12:15 PM roycroft: it's wide temperature swing time of year here
12:15 PM rdtsc-wk: aah, well there's a pre-built .iso for this occasion :) https://linuxcnc.org/downloads/
12:16 PM roycroft: it got down to close to freezing this morning, but will be very warm this afternoon
12:17 PM lcnc-relay: <meisterdippel> i talk about my workstation
12:17 PM lcnc-relay: <meisterdippel> my development system
12:18 PM rdtsc-wk: oh, yeah not easy to update that :)
12:18 PM Tom_itx: JT-Cave, i need to go thru the examples and fix a few things...
12:32 PM Tom_itx is now known as Tom_L
12:32 PM Tom_L: the rpi one is likely broken too.. need to check on name changes
12:32 PM lcnc-relay: <roguish> Tom_itx: yeah, a couple of them don't work...
12:32 PM lcnc-relay: <roguish> pins missing
12:32 PM Tom_L: i was somewhat waiting for the names to be established
12:32 PM Tom_L: i may have 2-3 versions of each one going at any given time
12:32 PM Tom_L: gonna try to finish testing the angle subs then fix those
12:45 PM lcnc-relay: <meisterdippel> does anyone know if you can load a realtime module from a different location (not /usr/lib/linuxcnc/modules/)?
12:45 PM lcnc-relay: <meisterdippel> like this: loadrt ./rio.so and it loads the file from the working folder !?!?!
12:46 PM lcnc-relay: <meisterdippel> ./rio.so: dlopen: /usr/lib/linuxcnc/modules/./rio.so.so: cannot open shared object file: No such file or directory
12:50 PM jpa-: maybe leave out the .so
12:57 PM Tom_L: JT-Cave, PR #109
12:57 PM Tom_L: don't think we need that one any more
01:01 PM Rab: Don't you have to run depmod to register new modules? Maybe there's a way to specify a path to search besides /lib/modules/[version].
01:01 PM Rab: Or if you create a symlink there, maybe it'll follow that.
01:22 PM JT-Cave: Tom_L, I'm working on cleaning up the hal code a bit so I'll get the pr when I'm done
01:24 PM lcnc-relay: <Travis Farmer> same with my PR too, i assume? #108
01:27 PM JT-Shop: yup I need to have everything committed locally before doing a pr and pulling
01:27 PM lcnc-relay: <meisterdippel> have try allready 😦
01:28 PM lcnc-relay: <meisterdippel> depmode is not needed , symlink will work but i have the same problem like now
01:29 PM lcnc-relay: <meisterdippel> i can not write as user to this directory and i need an different .so for each config
01:30 PM lcnc-relay: <meisterdippel> depmod is not needed , symlink will work but i have the same problem like now
01:31 PM lcnc-relay: <Travis Farmer> seems overly complicated
01:36 PM lcnc-relay: <meisterdippel> halcmd_commands.cc: r = snprintf(mod_path, sizeof(mod_path), "%s/%s%s", rtmod_dir, mod_name, MODULE_EXT);
01:36 PM lcnc-relay: <meisterdippel> ok, no chance without patching 😦
01:46 PM lcnc-relay: <Travis Farmer> meister, would it work to program some sort of HAL component, or does it have to be a module?
01:50 PM lcnc-relay: <meisterdippel> it's a realtime module
01:51 PM lcnc-relay: <meisterdippel> the interface between linuxcnc and the controller
01:54 PM lcnc-relay: <Travis Farmer> ok, so the point i was going to get at, is why can it not be programmed to read a configuration file at startup, like an INI file, so you only need one module, but can load different configs?
01:58 PM lcnc-relay: <meisterdippel> it would be a huge effort to read the configuration into the c-file, but in the end that's the way i have to go
01:58 PM lcnc-relay: <meisterdippel> at the moment the rio.c file is generated by a python script
01:59 PM lcnc-relay: <Travis Farmer> i have made an Arduino read from an INI off of a SD card, i have faith you can do it with rio
01:59 PM lcnc-relay: <meisterdippel> normaly it's not a problem, but i have many test configurations and have to load different configs on the same system
02:00 PM lcnc-relay: <meisterdippel> no question, it is feasible, but it just takes a lot of time to implement it
02:02 PM lcnc-relay: <Travis Farmer> i understand. what about the RIo hardware, would it be easier to hard-code the module and make the RIO hardware more flexable? perhaps load custom firmware for each scenario? like the Mesa hardware FPGA does it? just an idea
02:06 PM lcnc-relay: <meisterdippel> the bitfiles are also generated and have to match the module because every config have other interface data
02:07 PM lcnc-relay: <Travis Farmer> sounds like you have your hands full then. best of luck to you, as i am out of ideas 😉
02:07 PM lcnc-relay: <meisterdippel> slowly for me too 😂
02:08 PM lcnc-relay: <meisterdippel> i should do a merge request to linuxcnc 🙂
02:09 PM lcnc-relay: <meisterdippel> normally it all works quite well
02:11 PM Tom_L: JT-Shop, just pushed the touch-probe2 example with updated subroutines and tool tips added to the settings
02:12 PM Tom_L: tested both inch & metric versions
02:12 PM Tom_L: i think these angle subs are more flexible
02:14 PM lcnc-relay: <meisterdippel> one more idea i have, i can build a general rio module to which i give the config directory and the module then loads the actual so from there, hmmm
02:14 PM lcnc-relay: <meisterdippel> * .so
02:15 PM lcnc-relay: <Travis Farmer> could work, but i "think" modules need to be root privs
02:17 PM lcnc-relay: <meisterdippel> will try it, it's not an kernel module and linuxcnc runs without root privs.
02:18 PM lcnc-relay: <Travis Farmer> i just know when i run halcompile to compile and install a component, it seems to need root privs. we will see
02:19 PM lcnc-relay: <meisterdippel> yes, but only to write into the /usr/lib/linuxcnc/modules/ folder
02:20 PM lcnc-relay: <meisterdippel> if i change the rights of an existing /usr/lib/linuxcnc/modules/rio.so , i can overwrite it without root
02:21 PM lcnc-relay: <meisterdippel> no problem for me, but it should be easy usable for 'normal non linux' users
04:27 PM lcnc-relay: <meisterdippel> it works 🙂
04:28 PM JT-Shop: it?
04:29 PM lcnc-relay: <roguish> JT-Shop: found the red crossedout circle.....
04:29 PM lcnc-relay: <roguish> Find the QMainWindow in the right hand panel (it should be right at the top). Underneath you see centralwidget representing the window's central widget. The icon for the central widget show the current layout applied. Initially it has a red circle-cross through it, showing that there is no layout active.
04:29 PM lcnc-relay: <roguish> ....no layout active.....
04:29 PM JT-Shop: interesting
04:30 PM JT-Shop: never noticed
04:30 PM JT-Shop: so Tom_L examples should be full of red circle cross LOL
04:31 PM lcnc-relay: <roguish> i'm reading some of the designer help...
04:32 PM JT-Shop: might be an early night for me... going to Eureka Springs tomorrow
04:35 PM bjorkintosh: JT-Shop: delicious indian food in Bentonville, if you're a fan.
04:35 PM bjorkintosh: it's not that long a drive.
04:35 PM bjorkintosh: I don't know if they have any in Bellavista. it's been a few years already.
04:36 PM bjorkintosh: and I'm sure you've been to Crystal Bridges. really neat.
04:37 PM JT-Shop: I've not seen crystal bridges
04:37 PM JT-Shop: we are going for Corvette Weekend but have an extra day on each end
04:39 PM lcnc-relay: <roguish> JT-Shop: https://www.pythonguis.com/tutorials/pyqt6-first-steps-qt-designer/
04:39 PM lcnc-relay: <meisterdippel> my module loader from the config folder
04:40 PM JT-Shop: we stay at Beaver Lake in a mom and pop that over looks the lake
04:42 PM bjorkintosh: ah beaver lake. really lovely.
04:43 PM JT-Shop: we stay at Pointe West
04:43 PM JT-Shop: pretty cool place to stay
04:43 PM bjorkintosh: another really neat site to see: https://visitwareaglemill.com/
04:43 PM lcnc-relay: <meisterdippel> good night, need sleep
04:43 PM JT-Shop: cool
04:44 PM Tom_L: yeah most of mine i didn't use a layout. i didn't intend to publish initially but test with them
04:45 PM JT-Shop: :)
04:45 PM Tom_L: subs are done afik
04:45 PM Tom_L: and
04:45 PM JT-Shop: and?
04:45 PM Tom_L: i don't have icons for them but i think if you change one line of code you can reverse all them
04:46 PM Tom_L: reverse the angle on each side
04:46 PM JT-Shop: cool
04:46 PM Tom_L: i haven't and likely won't test it
04:46 PM JT-Shop: I'm going to try and finish what I started this morning in the morning and do the pr's
04:46 PM Tom_L: these are simpler
04:47 PM JT-Shop: when I do a pr I must pull before I forget or it screws things upo
04:47 PM JT-Shop: up
04:47 PM Tom_L: if i found some reversed icons i might look into it
04:47 PM Tom_L: it would be a mess... there are 4 commits
04:48 PM JT-Shop: and before I can pull I must commit my local changes
04:48 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/touch-probe2-angle.png
04:48 PM lcnc-relay: <Travis Farmer> and then find a pull reverts those changes ... 😉
04:49 PM Tom_L: shift the box in the angle ones so the upper right is the high side
04:49 PM JT-Shop: cool
04:50 PM Tom_L: i wouldn't really know what to call the difference but that probably could have a parameter to it
04:54 PM Tom_L: i wonder if gimp has a 'flip' or 'mirror' button
04:55 PM Tom_L: cause that's what it is
04:55 PM JT-Shop: I think you can mirror in gimp
04:55 PM Tom_L: that might not do it... not sure
04:56 PM Tom_L: maybe rotating them 90 and rearranging the boxes
04:57 PM Tom_L: lower right would become upper right etc
04:57 PM Tom_L: no that's still wrong
04:57 PM Tom_L: i think
05:33 PM * JT-Shop calls it a night
05:54 PM Tom_L: nearly forgot i took a short video
05:58 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/2point_angle.mp4
06:23 PM * roycroft does not like how the dust collector fits in the shed
06:23 PM roycroft: it may be time to disassemble it and redesign it
06:40 PM lcnc-relay: <big_kevin420> hmm whos got the easiest auto tool measure remap?
06:40 PM lcnc-relay: <big_kevin420> i dont want to struggle
06:43 PM lcnc-relay: <big_kevin420> oh i can check the forum under o codes probably
07:14 PM Tom_L: is there a use for the angles to be mirrored? http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/angle_quadrants_mirrored.png
07:40 PM * roycroft thinks he has a plan for remodelling the dust collector
10:04 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/Touch-probe-2A.png
10:27 PM _unreal_: how do you un home all?
10:27 PM _unreal_: heh