#flex-dev Logs
Feb 16 2025
#flex-dev Calendar
04:55 AM JT-Cave: morning
05:00 AM JT-Cave: we got an inch or so of snow last night
05:19 AM Tom_L: morning
05:20 AM Tom_L: we got a dusting yesterday... little acumulation
07:36 AM JT-Cave: trying to finger out how to reject a manual tool change
07:50 AM JT-Cave: yay got that fingered out
08:18 AM Tom_L: what scenario would you need to reject it?
08:23 AM JT-Cave: you typed in the wrong tool in the mdi
08:23 AM JT-Cave: and it says load tool 3 but you meant tool 4
08:26 AM * JT-Cave starts his chicken day
08:29 AM Tom_L: i see
09:14 AM Tom_L: how's the pitman arm progress?
09:17 AM Tom_L: PR #268
09:29 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/toolchange1.png
09:42 AM Tom_L: "Press When Done" resulted in:
09:42 AM Tom_dev: https://paste.debian.net/1350235/
09:42 AM Tom_L: checked the sim for the toolchange stuff and it's there
09:42 AM Tom_L: Debug file information:
09:42 AM Tom_L: HAL: ERROR: duplicate signal 'tool-prepare-loopback'
09:42 AM Tom_L: HAL: ERROR: duplicate signal 'tool-number'
09:42 AM Tom_L: HAL: ERROR: duplicate signal 'tool-change'
09:42 AM Tom_L: not sure if i did something wrong but the sim had the toolchange code already
09:42 AM Tom_L: all i did was check [FLEX] for the toolchange line and check to see that sim.hal had the toolchange lines
09:47 AM Tom_L: locked up the pc too
09:54 AM JT-Cave: you can't have both the hal_manualtoolchange and the flex manual tool change
09:54 AM JT-Cave: they use the same iocontrol pins
09:56 AM Tom_L: i was going off the docs
09:57 AM Tom_L: All that is needed to add a manual tool change is to add the following to the ini file in the [FLEX] section.
09:57 AM Tom_L: [FLEX]
09:57 AM Tom_L: MANUAL_TOOL_CHANGE = True
09:58 AM Tom_L: i tried commenting out the loadusr -W hal_manualtoolchange line and it crashed as well
09:58 AM JT-Cave: https://gnipsel.com/linuxcnc/flexgui/tools.html#manual-tool-change
09:58 AM JT-Cave: as you would expect it to crash if you
09:59 AM JT-Cave: 're trying to connect to pins that don't exist
09:59 AM Tom_L: my help must be buffered because i don't see that warning here :)
09:59 AM Tom_L: refresh and it's there now
10:00 AM Tom_L: but i did comment out the loadusr line and it still crashed
10:00 AM JT-Cave: just added it
10:00 AM JT-Cave: of course it did
10:01 AM Tom_L: i don't follow how to enable it then
10:01 AM Tom_L: comment all those lines out?
10:01 AM JT-Cave: you have to remove all the hal_manualtoolchange stufff
10:01 AM JT-Cave: all 5 lines
10:01 AM Tom_L: that's confusing in the docs
10:02 AM JT-Cave: if you comment out the loaduser line then it can't make the connection on the next line
10:02 AM Tom_L: you might make a note if you use flex toolchange to comment them all out
10:03 AM Tom_L: i was getting both dialogs on the screen and thought it was odd
10:03 AM JT-Cave: just did
10:04 AM JT-Cave: I think I'll check to see if hal_manualtoolchange is present and not enable flex manual tool change and popup a warning
10:04 AM Tom_L: works great now :)
10:05 AM Tom_L: i wasn't sure if i still needed to connect the signals
10:05 AM Tom_L: so i just commented out the component
10:06 AM JT-Cave: no, I make the connections in code
10:06 AM Tom_L: the help wording make you think you're talking about a single toolchange comp
10:07 AM Tom_L: not 2 different ones
10:07 AM Tom_L: the warning helps
10:08 AM Tom_L: i hit 'cancel' and it does nothing here
10:09 AM Tom_L: using the gui tool select or mdi
10:09 AM JT-Cave: https://github.com/jethornton/flexgui/blob/1.1.2/flexgui/src/libflexgui/startup.py#L1890
10:10 AM JT-Cave: it cancels the tool change watch the pins in hal
10:10 AM Tom_L: the dialog doesn't go away though
10:10 AM Tom_L: until you press when done
10:10 AM Tom_L: and still changes the tool
10:10 AM JT-Cave: https://github.com/jethornton/flexgui/blob/1.1.2/flexgui/src/flexgui#L75
10:11 AM JT-Cave: hmm
10:11 AM JT-Cave: goes away here
10:11 AM Tom_L: not here
10:11 AM Tom_L: i have the latest pull
10:11 AM Tom_L: lemme clone instead and try it
10:11 AM JT-Cave: ok
10:13 AM Tom_L: nope still does nothing
10:14 AM Tom_L: i don't have the warning code.. lemme grab that and try again
10:16 AM Tom_L: with 'cancel' the dialog still remains until you push the other button
10:16 AM Tom_L: now
10:16 AM Tom_L: when i try another tool change it does nothing at all
10:16 AM Tom_L: no dialog comes up
10:17 AM Tom_L: try it with my sim
10:17 AM Tom_L: that's what i'm using
10:17 AM Tom_L: just add the [flex] line and get rid of the sim.hal toolchange
10:19 AM JT-Cave: I just tried it my-mill and it works
10:19 AM Tom_L: touch-probe3
10:20 AM Tom_L: without the flex ini setting and with the sim.hal code the original toolchane works ok
10:21 AM JT-Cave: source sim_hardware.hal
10:22 AM JT-Cave: that's your problem most likely
10:22 AM Tom_L: it's in sim.hal as well
10:22 AM Tom_L: lemme check
10:22 AM JT-Cave: I would just use the hal from simple-sim
10:23 AM JT-Cave: yup even though I commented out all the sim.hal tool change you still get the hal_manualtoolchange
10:24 AM JT-Cave: that hal is a total mess
10:25 AM Tom_L: i searched for tool in sim_hardware.hal and nothing comes back
10:26 AM JT-Cave: but it still loads hal_manualtoolchange by some of Dewey's magic I think
10:27 AM JT-Cave: I had to comment out both sim hardware lines to not get the hal manual tool change
10:27 AM Tom_L: where?
10:27 AM JT-Cave: I would really ditch that hal for something simple
10:27 AM Tom_L: somebody else is bound to try it
10:28 AM JT-Cave: it?
10:28 AM JT-Cave: https://github.com/jethornton/flexgui/blob/1.1.2/examples/touch-probe3/sim.hal#L20
10:28 AM Tom_L: it being one of the axis sim examples
10:29 AM JT-Cave: https://github.com/jethornton/flexgui/blob/1.1.2/examples/touch-probe3/sim.hal#L27
10:29 AM JT-Cave: yeah and I'll use your's to test for hal manual tool change
10:30 AM JT-Cave: the pitman arm is soaking... most of the rest of the gearbox is clean and ready
10:33 AM Tom_L: with the axis sim stuff, do about 4-5 toolchanges without hittin cancel and it quits working
10:34 AM Tom_L: i commented out that addf line as well
10:43 AM JT-Cave: if you don't remove the sim_hardware stuff it won't work
10:43 AM Tom_L: i did in sim.hal
10:43 AM JT-Cave: pull, build and run your config again
10:43 AM Tom_L: ok
10:46 AM Tom_dev: #addf sim-hardware.update servo-thread
10:46 AM Tom_dev: and the other 5 lines
10:46 AM JT-Cave: I commented out the two sim hardware lines and all the tool change lines at the bottom and it works fine here
10:46 AM Tom_dev: i missed one then
10:47 AM Tom_dev: what line?
10:47 AM Tom_dev: source sim_hardware.hal
10:47 AM JT-Cave: yup
10:48 AM JT-Cave: that loads sim_hardware.hal into sim.hal
10:48 AM JT-Cave: the axis sims are a cluster f..k
10:49 AM Tom_dev: i get no warnings from flex
10:49 AM Tom_dev: toolchange works
10:49 AM Tom_dev: cancel does not
10:49 AM JT-Cave: does not do what?
10:50 AM Tom_dev: doesn't do anything. the dialog remains until i press when done
10:50 AM JT-Cave: when done?
10:50 AM Tom_dev: i can do a video if you want
10:50 AM JT-Cave: should only be two buttons cancel and ok
10:51 AM JT-Cave: I remove press when done a while back
10:51 AM JT-Cave: removed
10:51 AM Tom_dev: i'm still getting that... lemme clone again
10:52 AM JT-Cave: https://ibb.co/yBq9Pj0B
10:52 AM JT-Cave: you might have to close the github and reopen
10:53 AM Tom_dev: i see what's going on
10:53 AM Tom_dev: my bad
10:53 AM Tom_dev: bash_history bites
10:54 AM Tom_dev: ok i'm gonna make a video
10:54 AM JT-Cave: I just looked at tool_change.ui in github and it said the last commit was yesterday I left flexgui and went back and now it's 3 hours ago
10:54 AM Tom_dev: i get the 'ok' button now
10:55 AM Tom_dev: and my git says it's up to date
10:57 AM Tom_dev: seems to be workking now
10:57 AM JT-Cave: https://youtu.be/MVbYOGbkka8
10:58 AM JT-Cave: whew that was painful
10:58 AM Tom_dev: heh
10:58 AM Tom_dev: my bash history was still on 1.1.1 was part of the problem
10:59 AM JT-Cave: uncomment the loaduser hal_manualtoolchange and see what you get
10:59 AM JT-Cave: ah yeah the fixes are in 1.1.2
10:59 AM Tom_dev: i am
11:01 AM Tom_dev: it works with the 2 hardware lines now too
11:02 AM Tom_dev: and your warning works
11:03 AM Tom_dev: sorry :)
11:03 AM Tom_dev: can the dialog remember it's last location?
11:03 AM JT-Cave: thanks for making it bullet proof!
11:04 AM JT-Cave: no, I've never got that to work it just goes centered
11:04 AM Tom_dev: ok
11:04 AM Tom_dev: well at least we know it's bullet proof now
11:04 AM JT-Cave: https://gnipsel.com/linuxcnc/flexgui/tools.html#manual-tool-change
11:04 AM JT-Cave: update the docs
11:04 AM JT-Cave: need to update the image :(
11:04 AM Tom_dev: update the image :)
11:05 AM Tom_dev: much better
11:06 AM Tom_L: another one for the books
11:07 AM Tom_L: i'm gonna try to simplify the drill op like i did the counterbore one
11:07 AM Tom_L: so you won't need the first drill call separate
11:08 AM Tom_L: it works either way
11:08 AM JT-Cave: if you use a theme the dialogs and messageboxes use the theme
11:11 AM Tom_L: nice
11:11 AM Tom_L: i haven't figured out how to make/use those yet
11:19 AM JT-Cave: theme?
11:22 AM Tom_L: yeah
11:22 AM Tom_L: about have the op fixed
11:22 AM Tom_L: testing
11:23 AM JT-Cave: https://gnipsel.com/linuxcnc/flexgui/ini.html#themes
11:23 AM * JT-Cave heads out to see if my fires are still burning
11:32 AM Tom_dev: https://paste.debian.net/1350250/
11:35 AM JT-Woodshop: I like the use of @ with ^
11:36 AM Tom_L: yeah
11:36 AM Tom_L: this works good now
11:36 AM Tom_L: angles and offsets
11:36 AM Tom_L: i had to use a 2nd work offset on the other ops though
11:37 AM Tom_L: G59.3
11:45 AM Tom_L: PR #269 hole op
11:46 AM Tom_L: originally i was using the L word for count
11:54 AM Tom_L: unfortunately @ with ^ doesn't work in the while loop
11:54 AM Tom_L: (just tried it)
11:54 AM Tom_L: the @ value is additive in the mode i'm using
11:56 AM Tom_L: use it once outside the loop to establish the radius
03:35 PM JT-Woodshop is now known as C3-Shop
03:42 PM JT-Shop: https://www.corvetteforum.com/forums/c3-tech-performance/4903080-82-steering-overhaul.html#post1608572300
03:59 PM Tom_L: all cleaned up
04:01 PM C3-Shop: still trying to get that gasket sealer off the cap
04:03 PM Tom_L: scraper?
04:03 PM Tom_L: silicon is hard to get off if that's what it is
04:03 PM C3-Shop: can't use a scraper the surface it textured so using a ss toothbrush
04:05 PM JT-Shop: take a look at the third photo
04:06 PM JT-Shop: I have goo gone on it right now and if that don't work I'll try some heat
04:06 PM Tom_L: what did you use on the mirror?
04:08 PM JT-Shop: it fell off lol
04:09 PM Tom_L: again???
04:13 PM JT-Shop: https://www.corvetteforum.com/forums/c3-tech-performance/4889551-82-air-filter-2.html#post1608573045
04:25 PM Tom_L: done much fiberglass work?
04:25 PM JT-Shop: nope
04:26 PM JT-Shop: I do have a divot on the right front fender flare to fix
04:26 PM Tom_L: i did a handfull of model boat molds etc but not really my favorite thing
04:26 PM Tom_L: used to race em
04:28 PM Tom_L: pics would be on film and i'm not gonna go diggin
04:28 PM JT-Shop: lol
04:29 PM Tom_L: groups from the midwest, Mo, Ok, Tx, Ks
04:31 PM Tom_L: started under NAMBA and ended up with APBA for insurance purposes
04:41 PM JT-Shop: did you run outboards or inboards
04:42 PM Tom_L: inboard .65cc
04:44 PM Tom_L: https://www.worthpoint.com/worthopedia/ops-67-super-marine-engine-179231507
04:44 PM Tom_L: had 3-4 of those
04:52 PM Tom_L: ~4-5 hp
04:52 PM JT-Shop: I had an OS .120 twin in a plane
04:52 PM Tom_L: os were good
04:52 PM Tom_L: in fact i used an os carb on mine because they were better
04:53 PM Tom_L: the expansion pipe did alot for it
04:53 PM Tom_L: most of the plane guys didn't run expansion pipes
04:54 PM JT-Shop: how did you start them? can't just flip that prop lol
04:54 PM Tom_L: electric start with a belt
04:54 PM Tom_L: hand held
04:54 PM Tom_L: like the funny car guys do
04:54 PM Tom_L: only theirs are alot bigger and direct drive
04:55 PM Tom_L: i'm not sure they still do that
04:55 PM JT-Shop: the goo gone worked pretty well cleaning that part
04:55 PM Tom_L: cool
04:55 PM Tom_L: i had a box full of custom props
04:57 PM Tom_L: copper
04:57 PM Tom_L: i think
04:59 PM Tom_L: https://www.amazon.com/Mxfans-Shaft-Center-Leaves-Propeller/dp/B07FKBR3BT?dib=eyJ2IjoiMSJ9.bKXULMjUjQbCceYXG2C0_ZF0rA20kDvrfUaoBV3Mvi-RdvuTcjyeG7j3Q53Z2ilOKnrs-qcdQS3JaJZ1lwOb2P5cve5pnmafBpT2wV3dH0IdXXik0FaCI6LjO2utefwVuZqbj11vrdIgWxjmo1P84mSbDwpfzZyVlxHrc16cy7CGLdJ4BkDiWYLpwL2wX5GYRh8gnJkHmp_LI-GbRW-NWaKVb04kQA6I9rM9my-pNBlvrMPAn20wEx00EE1n5RKh0bYVHkBGmx2Covx9i1VgvZgowouTK0d-5hJiy3ysc83wTMZeILATGye0H7uqHX9X1InuLaSaKhtMp1--RKBpl9CdxsqA7ZR70
04:59 PM Tom_L: gjZHf1Vo5XGydNaGRb_7FunEYLiwp9XvGa8xESNv4g-GTEgHgeYK1dwQ4NChSJ2b6CpPKguO5JfUQqbZwNPo8hMDGndHW3Z.4NTw1iryBA9vlqOc6mRGVsJp3RjhUfoFq2eRW8JWI8Q&dib_tag=se&keywords=Model+Boat+Propellers&qid=1739746101&sr=8-57
04:59 PM Tom_L: woops
04:59 PM JT-Shop: https://www.amazon.com/Mxfans-Shaft-Center-Leaves-Propeller/dp/B07FKBR3BT
04:59 PM Tom_L: similar to that
04:59 PM Tom_L: all polished and balanced
05:07 PM JT-Shop: just ordered the rebuild kit for the steering gearbox
05:09 PM JT-Shop: I only found one place that had a complete kit
05:11 PM Tom_L: the one in the link in your post?
05:13 PM JT-Shop: yup
05:13 PM JT-Shop: fedsex was $30 usps was $14
05:59 PM JT-Shop: now I gotta find a 0-30 lb. in. dial torque wrench to set the preloads
06:02 PM xxcoder: lol
06:07 PM * JT-Shop calls it a day
06:33 PM Tom_L: wide range of prices on those