#hazzy Logs

Dec 21 2019

#hazzy Calendar

04:52 AM jthornton: morning
09:37 AM hazzy-m: morning
09:40 AM JT-Shop: you finally home?
09:40 AM hazzy-m: Yes!
09:41 AM JT-Shop: my goal today is to clean the machine shop up starting with that pile of crap on my desk
09:48 AM JT-Shop: with a few short breaks to fly a drone around the neighborhood
10:19 AM hazzy-m: the flying part sounds fun lol
11:11 AM JT-Shop: yea I'm liking the DJI Mavic Pro
11:50 AM jthornton: g Code viewer using QPlainTextEdit is starting to come together... QPlainTextEdit is the fastest way to view large files...
12:47 PM hazzy-m: jthornton: Awesome1
12:47 PM hazzy-m: have you figured out how to highlight the current line?
12:48 PM hazzy-m: that's something that stumped me a while back when I was investigating QPlainTextEdit
01:10 PM Lcvette: \o/
01:10 PM Lcvette: hello my code peeps!
01:10 PM Lcvette: :D
01:17 PM jthornton: yea I think I got that sorted out, doing line numbers now
01:55 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03NotificationButton
01:56 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03NotificationButton - 13https://git.io/fhCou
01:56 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03Notificationoverlay - 13https://git.io/fhCou
01:56 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03Notificationoverlay
02:00 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03simulate-probe - 13https://git.io/fhCou
02:00 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03simulate-probe
02:00 PM Lcvette: you are deleting simulate probe?
02:01 PM hazzy-m: yes, its been merged
02:01 PM Lcvette: ok
02:01 PM hazzy-m: just cleaning up branches that aren't needed anymore since they are already in master
02:01 PM Lcvette: ok
02:01 PM hazzy-m: did I scare you?
02:01 PM hazzy-m: lol
02:02 PM Lcvette: yes
02:02 PM Lcvette: i noticed that probe basic vertical and lathe don't open anymore
02:02 PM Lcvette: not sure why
02:02 PM hazzy-m: you thought I'd gone off the deep end from being in oregon xD
02:03 PM Lcvette: lcvette was nervous
02:03 PM Lcvette: lol
02:03 PM hazzy-m: hmm, probably some widget names have changed
02:03 PM hazzy-m: it;s been a while since we updated those
02:04 PM Lcvette: yeah no biggie i don't remember what has changed since i did them
02:04 PM Lcvette: i figured i would remake them once PB was all sorted out
02:05 PM Lcvette: hey while you are dabbling, any thoughts on the VKB and having it not cover the boxes when it opens?
02:05 PM Lcvette: and maybe have it close with the enter key?
02:05 PM Lcvette: :D
02:06 PM hazzy-m: yes, shouldn't be two hard to check the position of the widget that triggered the VKB and move it just above or two the side
02:08 PM Lcvette: i think that is all that is left in VKB
02:08 PM Lcvette: then it could be activated
02:08 PM Lcvette: oh it probably needs a activation button in settings
02:12 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03HAL - 13https://git.io/fhCou
02:12 PM Not-46f0: [02qtpyvcp] 07KurtJacobson deleted branch 03HAL
02:13 PM hazzy-m: yes, need to be able to turn it on or off for sure
02:31 PM roguish[m]: hazzy: good afternoon. hey, i'm looking for a joint jog enable status. 'joint.0.jog-enabled' or something. is it available?
02:34 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03master [+0/-2/±0] 13https://git.io/JedPq
02:34 PM Not-46f0: [02qtpyvcp] 07KurtJacobson 0344436dd - MNT: Remove ignored .settings.json files in examples
02:34 PM hazzy-m: roguish: should be, I think it teleop or something like that, let me check
02:35 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+460/-0/±0] 13https://git.io/JedPm
02:35 PM Not-46f0: [02qtpyvcp] 07traviscibot 03c781ab7 - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
02:35 PM hazzy-m: roguish: this should work: https://qtpyvcp.kcjengr.com/plugins/status.html#qtpyvcp.plugins.status.Status.motion_mode
02:36 PM hazzy-m: when in free mode you are jogging joints, in coord or teleop mode axes
05:27 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03master [+0/-0/±1] 13https://git.io/JedMa
05:27 PM Not-46f0: [02qtpyvcp] 07KurtJacobson 0329dc212 - BUG: Path of a VCP specified in INI should be relative to the $CONFIG_DIR
05:28 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+460/-0/±0] 13https://git.io/JedMV
05:28 PM Not-46f0: [02qtpyvcp] 07traviscibot 03ccaf956 - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
05:30 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03master [+0/-0/±8] 13https://git.io/JedMr
05:30 PM Not-46f0: [02qtpyvcp] 07KurtJacobson 0385eabda - SIM: Clean up DISPLAY section in sim configs
05:31 PM Not-46f0: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+460/-0/±0] 13https://git.io/JedMK
05:31 PM Not-46f0: [02qtpyvcp] 07traviscibot 03bab0a27 - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
06:24 PM roguish[m]: hazzy: in your code, qtpyvcp, where are your deriving all those states or statuses in the link you just cited to me?
06:25 PM roguish[m]: obviously they come out of linuxcnc, but how/where are they in linuxcnc ? and how to you capture them?
06:26 PM hazzy-m: the vast majority of them are the standard linuxcnc status attributes, and are exposed as channels but the status plugin located in the plugins directory
06:27 PM hazzy-m: https://github.com/kcjengr/qtpyvcp/blob/master/qtpyvcp/plugins/status.py
06:31 PM * roguish[m] uploaded an image: image.png (17KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/wTFBxAbGheABiWIJHAAylDtZ >
06:31 PM roguish[m]: ok, that's all the 'jog' in that particular file.
06:32 PM roguish[m]: are they then per joint and/or per axis?
06:33 PM roguish[m]: oh, poo. that's your file...doh.
06:33 PM hazzy-m: are you interested in being able to set the jog parameters per joint/axis?
06:34 PM roguish[m]: no. on my axis gui, i have a couple of led's (using pyvcp) that indicate which axis i have jog enabled by a rotary switch on the pendant.
06:35 PM roguish[m]: and a text box that shows the jog increment from a similar rotorary switch on the pendant.
06:36 PM roguish[m]: the switches are connected via hal the joint jog enables and jog increments.
06:37 PM roguish[m]: I would like to replicate those.
06:39 PM hazzy-m: Ok, the easiest way to do it would be duplicate your pyvcp set up with QtPyVCP using the HAL widgets
06:39 PM roguish[m]: ok. great. how???
06:40 PM hazzy-m: use the HAL LEDs for indicating which axis is selected (hook up the same as your pyvcp LEDs)
06:42 PM hazzy-m: and then a HAL label for the jog increment
06:44 PM roguish[m]: ok, i see the StatusLED. that one? then add a widget rule?
06:44 PM roguish[m]: or the HalLedIndicator?
06:45 PM roguish[m]: what would the 'rule' look like?
06:47 PM hazzy-m: use the HAL LED
06:48 PM hazzy-m: HalLedIndicaor
06:48 PM hazzy-m: it will great a HAL pin
06:48 PM hazzy-m: create*
06:49 PM roguish[m]: what would the channel be?
06:49 PM roguish[m]: is there an example somewhere? in one of the samples, or bp, or pb?
06:50 PM roguish[m]: let me poke around a bit.
06:50 PM hazzy-m: no channels, you just wire it up in HAL exactly like the pyvcp LEDs
06:50 PM hazzy-m: sek, I'll try to make an example
06:55 PM hazzy-m: roguish: can you post your pyvcp code?
06:55 PM hazzy-m: then I know what to duplicate
06:57 PM hazzy-m: ok, we have a HAL label, but I think it should actually be called a HAL DRO
06:58 PM hazzy-m: then add a new HAL label that can have text set based on an int HAL value
06:58 PM hazzy-m: then we should have everything that pyvcp does
06:58 PM roguish[m]: well, it's pretty simple. it's just a few hal lines.
06:59 PM roguish[m]: net signal_name hal.pin pyvcp.pin_name
06:59 PM hazzy-m: no I mean the PyVCP xml file code
07:00 PM roguish[m]: ok, sec.
07:03 PM * roguish[m] posted a file: axis3_on-led.xml (9KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/dvuNcEExhcbyiFpSLmLYBcsx >
07:03 PM roguish[m]: gotta scroll down to very near the bottom
07:04 PM hazzy-m: I see it!
07:04 PM hazzy-m: axis jog
07:04 PM hazzy-m: thanks!
07:04 PM roguish[m]: that is a farily typical pyvcp xml file, i believe.....
07:04 PM roguish[m]: yeah, I have 3 leds. 1 for each axis.
07:05 PM roguish[m]: and a text box for the increment.
07:05 PM hazzy-m: oh, that is VERY easy to duplicate!
07:06 PM * roguish[m] posted a file: axis3_on-led.xml (9KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/qjSVBqmSMAvokqsTDkafhTrE >
07:07 PM roguish[m]: and that is the .hal file. a little messy. it's a devel file.
07:12 PM roguish[m]: hazzy: hey, don't ruin your Saturday night......there is no hurry here at all.....
07:14 PM roguish[m]: hazzy: actually, the best thing all around might be to include a simple example of how to use the hal widgets that are not explicity tied to existing channels. just like this silly example......