#flex-dev Logs

Aug 23 2025

#flex-dev Calendar

04:47 AM Tom_L: morning
05:23 AM JT-Chicken: nibeub
05:24 AM JT-Chicken: 63-90F
06:46 AM JT-Cave: flex2 no longer needs key_lb and prints out the jog command to the terminal so run in a terminal
06:47 AM JT-Cave: it does not know about continues or increment yet
06:56 AM JT-Cave: but it does now know so run your sim in a terminal
07:28 AM Tom_L: ok, i have been running from terminal
08:21 AM JT-MShop: does it look correct to you?
08:49 AM Tom_L: so far
08:50 AM Tom_L: i haven't tested everything yet
11:12 AM Tom_L: phew, it's muggy out
11:12 AM Tom_L: i did look at the returns and the axis values look right
11:12 AM JT-Shop: feels good here
11:12 AM * JT-Shop hears a nap calling his name
11:12 AM Tom_L: cooler but muggy
11:13 AM Tom_L: i think the grass can wait
11:13 AM JT-Shop: got one 7/16-20 x 3/8-16 coupling nut with a hex done
11:13 AM Tom_L: yeah, what are those for?
11:13 AM JT-Shop: a place to connect some wheels for the bandsaw
11:13 AM Tom_L: ahh
11:14 AM JT-Shop: been quite a thought process
11:14 AM Tom_L: i was slow getting started today for some reason
11:14 AM Tom_L: was up but not functioning to capacity
11:15 AM Tom_L: was up watching chernobyl on MAX a bit late. maybe that was it
11:15 AM JT-Shop: nap time
12:20 PM JT-Cave: keyboard jog works now but needs some testing
12:25 PM Tom_L: works in touch-probe3
12:26 PM Tom_L: opened a gcode and made the widget active but down arrow still jogs
12:27 PM Tom_L: or others
12:28 PM Tom_L: i don't recall the previous behavior... i'll test that
12:29 PM Tom_L: yes, prevous version allows arrow navigation in gcode window
12:30 PM Tom_L: all 6 buttons
12:30 PM Tom_L: so now to start limiting where kbd jog can be used
12:31 PM Tom_L: it seems plenty responsive though
12:32 PM Tom_L: not just manual mode but a few other restrictions needed
12:32 PM Tom_L: err power/estop
12:33 PM JT-Shop: the only time it should jog is if power is on and you're in manual mode
12:33 PM JT-Shop: it cares not where the focus is
12:33 PM JT-Shop: with power off it should not jog
12:33 PM Tom_L: that part works
12:34 PM Tom_L: switching back to test repo...
12:35 PM Tom_L: so far things look like they're doing what they're told
12:36 PM Tom_L: i just loaded the file to see what else shares the buttons
12:37 PM JT-Shop: if you're in manual and power is on nothing else gets the events
12:38 PM Tom_L: right
12:41 PM Tom_L: with power off, i am able to use the arrows inside the gcode widget
12:41 PM Tom_L: because they are ignored by the new code
12:42 PM JT-Shop: yup
12:42 PM Tom_L: for that matter estop and power off i am
12:42 PM Tom_L: so far things look like they're working
12:43 PM Tom_L: just suggesting other restrictions are needed
12:43 PM JT-Shop: just gotta add the ini entry and a few things
12:43 PM Tom_L: ini for what?
12:43 PM JT-Shop: KEYBOARD_JOG = True
12:44 PM Tom_L: ok, i didn't know if you were gonna offer a 'switch'
12:44 PM JT-Shop: I think an ini entry would be easier
12:45 PM Tom_L: yeah it would be alot easier
12:46 PM Tom_L: not too many other widgets need to share the buttons
12:46 PM Tom_L: i think part of the point spud was making is not having a mouse
12:47 PM Tom_L: but that would make navigating the gcode & others harder
12:49 PM JT-Shop: I think it's a huge improvement to flex
12:49 PM Tom_L: absolutely
12:52 PM Tom_L: i think the cool factor would be alot higher with 'focus' limits
12:53 PM Tom_L: as long as those were not in focus, keep the keys
12:54 PM JT-Shop: that could get very cornfusing
12:57 PM Tom_dev: gcode_pte
12:57 PM Tom_dev: qcombobox
12:57 PM Tom_dev: qslider
12:57 PM Tom_dev: qspinbox
12:57 PM Tom_dev: are some i see right off that share the keys
12:58 PM Tom_L: is it hard to detect focus on a widget?
12:58 PM JT-Shop: sometimes you can't change the focus if there is nothing else that takes focus
12:59 PM Tom_L: if you're gonna use a switch, i would make it a checkbox so that the user can uncheck it to get keys for the other widgets
12:59 PM Tom_L: that would be more acceptable imo
12:59 PM Tom_L: and easier than coding focus
01:00 PM JT-Shop: and if you don't have a mouse?
01:00 PM Tom_L: then all you need to test for is the checkbox
01:00 PM Tom_L: if you don't have a mouse you're screwed either way
01:00 PM JT-Shop: yup
01:02 PM Tom_L: you really need a mouse to select the widgets anyway unless you painfully set the tab order
01:02 PM Tom_L: i think i've even forgot how to do that
01:02 PM Tom_L: i know i didn't do it in touch-probe3
01:03 PM JT-Shop: yea a touch screen usually doesn't have a mouse or keyboard
01:04 PM Tom_L: you're kinda faced with a similar situation except you can put your finger on the widgets
01:06 PM JT-Shop: that's why I have events for touch screens that popup keyboards and number entry things
01:06 PM Tom_L: right
01:07 PM Tom_L: in a sense, you still have a mouse (your finger) to select
01:08 PM JT-Shop: and I have to bring those back into the event filter
01:08 PM Tom_L: i don't use the keyboard alot for changing sliders etc but i'm sure some do
01:09 PM Tom_L: with the ini entry, you either have it or you don't
01:09 PM JT-Shop: yup
01:09 PM Tom_L: same with a checkbox
01:10 PM Tom_L: were you planning to add jog for rotary? '[]'
01:11 PM JT-Shop: it would be easy to add keyboard jog for the 4th axis
01:11 PM Tom_L: right
01:11 PM Tom_L: but if those keys were needed elsewhere they wouldn't be available
01:12 PM Tom_L: i'm not sure where you would need []
01:15 PM * JT-Shop starts burning trash... the mountain is much too high
01:27 PM Tom_L: fwiw: http://paste.debian.net/1393039/
01:35 PM JT-Shop: in Axis if you're in manual you have keyboard jogging if not in manual you don't have keyboard joggine
01:40 PM Tom_L: try it and see what reactions you get. it may be fine
01:40 PM Tom_L: i think i'd use a checkbox over an ini entry
01:42 PM JT-Shop: why
01:44 PM Tom_L: i wouldn't have to restart lcnc to gain access to the keys
01:44 PM Tom_L: if i needed them for something
01:44 PM Tom_L: i just tried navigating the gcode in axis and the arrows aren't active there either
01:45 PM Tom_L: it's kindof a tossup using a checkbox or ini
01:46 PM Tom_L: i use a mouse for changing sliders etc i'm just thinking if i didn't have one
01:46 PM Tom_L: with a touch screen you wouldn't need one and can still have kbd jogging
01:47 PM Tom_L: spud may be using touch i have no idea
01:48 PM Tom_L: roguish was another one wanting kbd jog
01:48 PM Tom_L: i don't think he has a working flex ui yet
01:51 PM Tom_L: you're probably not going to switch modes that often anyway so try the INI
01:51 PM Tom_L: for the longest time i didn't know axis had kbd jog :)
01:53 PM Tom_L: i could try it on the mill before going live if you want
01:54 PM JT-Shop: I guess you could have the checkbox checked so you don't have to remember to check it then when in manual mode you want to edit a file uncheck it... kinda makes sense
01:55 PM Tom_L: i'm used to the mouse so it really doesn't matter to me, just thinking about other options
01:56 PM Tom_L: i just think it's awesome it works
01:56 PM Tom_L: gonna go test it
01:57 PM JT-Shop: guess I need to quit machining I just broke a tool holder on the manual lathe
02:02 PM Tom_dev: works good and changes jog speed with the slider
02:03 PM Tom_dev: you might want to provide a way to change + - direction for the buttons
02:04 PM Tom_dev: the X and Y on mine seem backward to the arrow direction
02:04 PM Tom_dev: if i'm watching the spindle they are correct
02:05 PM Tom_dev: which is probably what i should be doing :)
02:07 PM Tom_dev: they stop at the soft limits like they should as well
02:08 PM Tom_dev: inactive during a program run
02:10 PM Tom_dev: i did notice something else
02:11 PM Tom_dev: running a test program i stopped midway and it stays in auto
02:12 PM Tom_dev: may have just been a fluke... can't seem to reproduce it
02:12 PM Tom_dev: seems i have to hit pause then stop for it to clear the auto mode
02:13 PM Tom_dev: going from run to stop stays in auto mode
02:14 PM Tom_dev: not every time though
02:14 PM Tom_dev: i wouldn't worry about it
02:15 PM JT-Shop: I've not checked direction carefully
02:15 PM Tom_dev: i get mixed up with that because i usually watch the table
02:15 PM Tom_dev: i think it's probably right
02:15 PM Tom_dev: all these tests pass on hardware
02:15 PM Tom_dev: pretty cool addition
02:16 PM Tom_dev: heading back inside
02:20 PM Tom_L: just as responsive as using a jog button
02:22 PM JT-Shop: I wonder where I can get the stud that's used to set the height of the tool holder? this one is sorta bent now
02:22 PM Tom_L: tool holder?
02:23 PM Tom_L: got a pic?
02:24 PM Tom_L: would a dowel pin work?
02:25 PM JT-Shop: https://www.mscdirect.com/product/details/09043217
02:26 PM Tom_L: threaded all the way
02:26 PM Tom_L: what size screw is it?
02:27 PM Tom_L: a long grub screw might work if you can find a long one
02:29 PM Tom_L: https://tinyurl.com/4ebdpd5j
02:31 PM JT-Shop: I'd have to figure out what size it is, the nuts are ok I think
02:31 PM Tom_L: you can likely find a grub screw that would work
02:31 PM Tom_L: or a full threaded hex head as a 2nd choice
02:31 PM JT-Shop: or just buy a new tool holder after I figure out if it's axa or something else
02:31 PM Tom_L: or that :)
02:36 PM JT-Shop: I think I have bxa
02:42 PM Tom_L: niece is taking us out for steak tonight for helping her
02:49 PM JT-Shop: nice
03:08 PM JT-Cave: and window.keyboard_jog_cb.isChecked() has been added
03:48 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/flexgui2_testfiles/
03:48 PM Tom_L: if you want to copy them somewhere
03:50 PM JT-Shop: ah ok
03:51 PM JT-Shop: https://github.com/jethornton/flexgui2/blob/master/README.md
03:51 PM Tom_L: oh i didn't add that cb
03:51 PM Tom_L: maybe i should have
03:52 PM Tom_L: leavin here in a bit but can fix that when i get back
03:52 PM Tom_L: i could add it to touch-probe3
03:52 PM JT-Shop: ok
03:52 PM JT-Shop: I added it to the readme in both repos
03:52 PM Tom_L: some foreign can't access my site
03:57 PM Tom_L: lemme add that to touch-probe3 and repost
03:59 PM Tom_L: ok both debs have the cb in touch-probe3 now
04:00 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/flexgui2_testfiles/Keyboard_jog_cb.png
04:01 PM Tom_L: it's not checked by default though
04:01 PM Tom_L: (forgot)
04:03 PM Tom_L: now it is...
04:04 PM Tom_L: maybe roguish will test it
04:05 PM Tom_L: ok, headin out the door
04:14 PM Tom_L: should post a note on the forum too
04:15 PM JT-Shop: ok
05:58 PM Tom_L: ok now i could use a nap