#hazzy | Logs for 2018-09-15
Back
[00:12:06] <robotustra> hm, this code does not have gl drawings I think
[00:12:48] <robotustra> the code which hazzy gave contains gl functions
[00:17:27] <hazzy-m> robotustra: That is right, but the xemc code might be helpful if you decide not to use linuxcncrsh
[00:17:48] <hazzy-m> and send the commands directly
[00:19:48] -!- jthornton has quit [Ping timeout: 252 seconds]
[00:20:06] <robotustra> the idea is to use any small device like tablet, connected via network to linuxcnc machine ain control in remotely via touch screen
[00:20:28] <robotustra> or even android phone
[00:21:12] <robotustra> why do I need a keyboard and screen while I'm machining?
[00:22:12] <robotustra> or what if I want to run programs remotely? in other room for instance?
[00:22:28] <robotustra> or even from work at home?
[00:24:49] <hazzy-m> yes, I understand that you want to have a remote UI, but as it stands I don't think linuxcncrsh is complete enough to do that so I expect that it will either have to be extended to a more modern interface developed
[00:25:26] <hazzy-m> machinekit uses a C++ based protobuf server for all UIs (remote and local)
[00:25:59] <hazzy-m> we might be able to steal some of their code :)
[00:26:44] <hazzy-m> they have not changed that much, shouldn't be too hard
[00:43:23] <robotustra> linuxcncrsh is good for me for now, but I think I'll add some more stuff in it
[01:10:00] <Not> [02QtPyVCP] 07Kurt Jacobson pushed 036 commits to 03actions [+1/-0/±12] 13https://gitlab.com/Hazzy/qtpyvcp/compare/12240474e2f2267252ab8f1024f23123f4681b90...1310b179b4788086fe26421595df5b1b5448f6a9
[01:10:02] <Not> [02QtPyVCP] 07Kurt Jacobson 03861b603 - add block del and opt stop actions
[01:10:03] <Not> [02QtPyVCP] 07Kurt Jacobson 03b9849ec - better way to test widget checkable
[01:10:05] <Not> [02QtPyVCP] 07Kurt Jacobson 031151b7b - add basic machine actions
[01:10:06] <Not> [02QtPyVCP] ... and 3 more commits.
[01:10:49] * hazzy-m calls it a day
[01:10:52] <hazzy-m> gn8
[01:14:59] <TurBoss> n88
[07:04:25] -!- jthornton has joined #hazzy
[09:34:30] -!- jthornton has quit [Quit: Leaving]
[13:23:42] -!- Seva has joined #hazzy
[13:52:22] -!- Roguish has joined #hazzy
[13:57:29] <Not> [02QtPyVCP] 07Kurt Jacobson pushed 031 commit to 03actions [+0/-0/±2] 13https://gitlab.com/Hazzy/qtpyvcp/compare/1310b179b4788086fe26421595df5b1b5448f6a9...d4db3dae4bc818ec5fc633973276a968de1d0ec4
[13:57:30] <Not> [02QtPyVCP] 07Kurt Jacobson 03d4db3da - axis jog actions working
[14:14:24] <Not> [02QtPyVCP] 07Kurt Jacobson pushed 032 commits to 03actions [+0/-0/±2] 13https://gitlab.com/Hazzy/qtpyvcp/compare/d4db3dae4bc818ec5fc633973276a968de1d0ec4...91362aa4606a35b6a196a012d6f174633c57d63e
[14:14:25] <Not> [02QtPyVCP] 07Kurt Jacobson 03ebf8594 - remove last remaining axis action button
[14:14:27] <Not> [02QtPyVCP] 07Kurt Jacobson 0391362aa - use new jog actions for keyboard jogging
[14:15:50] <Roguish_desk> hey, just tried the jog. WORKS
[14:21:27] -!- Seva has quit [Quit: Page closed]
[14:25:15] <hazzy-m> Excellent! Thanks for testing
[14:25:32] <hazzy-m> I still need to make it work before the machine is homed
[14:25:55] <hazzy-m> right now it only jogs axes, so I need to make it also able to jog joints
[14:26:53] <hazzy-m> I am thinking for a machine with trivial kinematics to simply map joints to axes, it will get more difficult with gantry and other more complicated machines
[14:31:14] <Roguish_desk> R u in on a rainy day?
[14:33:23] <hazzy-m> No, it is actually beautiful weather, but I have some free time and Lcvette needs buttons! LOL
[14:33:53] <hazzy-m> I promised them a week ago ...
[14:47:30] <Roguish> the GUI shows with 5 axes. my .ini only has 3. what's up?
[14:48:05] <Roguish> axis works on demand. what is in the .ini shows in the gui.
[14:48:51] <hazzy-m> the extra axes will auto hide eventually, but I think Lcvette is keeping all 5 there for layout purposes
[14:49:37] <Roguish> ok.. same for the Gcodes listed on the MACHINE STATUS ?
[14:50:07] <hazzy-m> No, those are the actual active gcodes
[14:51:39] <Roguish> are they read from the .ini and the open gcode file?
[14:53:19] <hazzy-m> they are read from the interpreter, so will reflect whatever is in the INI and in the gcode file
[14:53:29] <Roguish> cool. good.
[14:53:46] <hazzy-m> Even if you don't have any startup codes in the INI and have no loaded a file there will be active gcodes
[14:54:19] <Roguish> is that from 'default' codes in the intrepreter?
[14:55:14] <hazzy-m> yes
[14:57:09] <Roguish> nice weather here too https://www.wunderground.com
[14:58:49] <TurBoss> hello
[14:58:57] <Roguish> hola
[14:59:02] <TurBoss> Hola hola!
[14:59:30] <TurBoss> no news from Lcvette ?? :((
[15:00:23] <TurBoss> I hope he is fine
[17:13:23] <hazzy> hello TurBoss
[17:13:27] <hazzy> no news :(
[17:14:16] <hazzy> Roguish: 72F, nice!! it is 90 here
[17:14:29] <hazzy> and humid
[18:01:19] <hazzy-m> Just checked in with Lcvette
[18:01:26] <hazzy-m> hey man! we are managing, but we are stranded from washed out roads, no power, surrounding flooding and continuing rain and surge. cable and Internet is out, word texts make it in/out ~ok depending on the time of day it seems. my house is fine no damage thankfully, neighbors not so lucky, several have trees on them, we had a few big trees lose major branches and tops but all mine were far away from the house
[18:02:06] <hazzy-m> doesn't sound fun, but at least they are all safe
[18:04:51] -!- JT-Shop has joined #hazzy
[18:08:16] -!- jthornton has joined #hazzy
[18:57:04] <jthornton> ok tuple(sum(i) for i in zip(a,b)) returns the sum of two tuples item for item getting close
[18:57:52] <hazzy-m> jthornton: What is that for?
[18:58:17] <hazzy-m> How was your outing with the spyder folks?
[18:58:22] <jthornton> the python interface has the G92 and G5_ offsets
[18:58:36] <jthornton> pretty good, everyone had a lot of fun
[18:58:58] <jthornton> so I need to sum them then subtract that from the actual to get the relative position
[18:59:07] <hazzy-m> Ah, I see that you are doing!
[18:59:35] <jthornton> for the position logger just having fun lol
[18:59:45] <jthornton> and glad to be back home
[19:00:19] <hazzy-m> this is how I did it: https://gitlab.com
[19:00:27] <hazzy-m> I like your way, that is interesting
[19:01:22] <jthornton> thanks
[19:01:34] <jthornton> one more line to finger out and that is clean and done
[19:07:50] * TurBoss is back
[19:08:00] <hazzy-m> hey
[19:08:22] <TurBoss> I have booted the linuxcnc dev env
[19:08:39] <hazzy-m> great!
[19:08:48] <TurBoss> I left so many tweak to the tool table and the filemanager
[19:09:05] <jthornton> got it in two lines :)
[19:09:47] <jthornton> a and b are the offsets c = tuple(-sum(i) for i in zip(a,b))
[19:10:23] <jthornton> m is machine or actual and r is relative r = tuple(sum(i) for i in zip(c,m))
[19:10:26] <jthornton> :)
[19:10:52] <jthornton> on to the next fun adventure :)
[19:11:09] -!- spupuser has joined #hazzy
[19:11:45] <hazzy-m> I would never have thought of using zip for that!
[19:12:04] <hazzy-m> hello spupuser
[19:12:37] <jthornton> my mind works different than most sometimes it works out sometimes not
[19:12:48] -!- spupuser has quit [Client Quit]
[19:13:01] <hazzy-m> LOL
[19:13:02] <jthornton> he/she/it didn't stay long
[19:13:14] <TurBoss> :|
[19:13:20] <TurBoss> oops
[19:13:38] <hazzy-m> censored xD
[19:13:50] <jthornton> lol
[19:15:39] <TurBoss> hey so much work on actions branch
[19:15:59] <hazzy-m> I hope it is good
[19:16:05] <hazzy-m> not sure
[19:16:20] <jthornton> and the final code
[19:16:21] <jthornton> offsets = tuple(-sum(i) for i in zip(self.s.g5x_offset,self.s.g92_offset))
[19:16:39] <jthornton> relative = tuple(sum(i) for i in zip(offsets,self.s.actual_position))
[19:16:58] <hazzy-m> that is positively jeplerian
[19:16:59] <hazzy-m> :D
[19:17:06] <jthornton> WOW
[19:17:29] <jthornton> that scares me lol
[19:17:37] <hazzy-m> hahaha
[19:17:38] <TurBoss> looks good :)
[19:18:03] <jthornton> it does resemble his accent in coding lol
[19:19:32] <jthornton> offsets ends up a negative number so summing them again subtracts the offsets from the actual position and you have the relative position
[19:22:01] <jthornton> I did run into an interesting problem yesterday trying to get the data from a qcombobox and got something else of which I forget now
[19:22:09] <hazzy-m> that makes sense
[19:22:13] <hazzy-m> how is the data stored, as gcode?
[19:22:15] <jthornton> need to fire up the laptop tomorrow and get my notes
[19:22:40] -!- robotustra has parted #hazzy
[19:22:43] <jthornton> no the data in pyqt4 does not come back as the text for some reason
[19:23:03] <hazzy-m> hmm
[19:23:05] <jthornton> just getting the data from a combo that is relative or actual
[19:23:24] <hazzy-m> ok
[19:23:26] <jthornton> I had to do something like .pyObject or some clutz
[19:26:44] <jthornton> a line like this failed to return the data in pyqt4 self.linearUnitsCB.itemData(self.linearUnitsCB.currentIndex())
[19:26:56] <jthornton> which works in pyqt5
[19:34:38] <jthornton> yea I get this <PyQt4.QtCore.QVariant object at 0x7f7ea5545758>
[19:34:53] <jthornton> from this print self.positionCB.itemData(self.positionCB.currentIndex())
[19:36:10] <jthornton> https://stackoverflow.com
[19:40:48] <jthornton> well that fixed that issue time to switch on the magnet in the couch
[19:48:06] <TurBoss> I'm trying to emit a signal on init but doesn't get fired
[19:48:29] <TurBoss> signal works
[19:48:34] <TurBoss> on double click
[19:49:20] <hazzy-m> hmm, maybe if the widget is not shown the signal will not be caught
[19:49:33] <TurBoss> that is what I'm thinking...
[19:49:35] <hazzy-m> maybe try emitting it on the show event?
[19:49:44] <TurBoss> ok
[20:08:59] <TurBoss> okay
[20:09:08] <TurBoss> parent.showEvent
[20:12:19] <hazzy-m> did that work?
[20:15:13] * TurBoss uploaded an image: image.png (49KB) < https://matrix.org >
[20:15:39] <TurBoss> I found some bugs
[20:16:07] <TurBoss> if you double clin in the date yougo to the date directory and same with the type lol
[20:16:27] <hazzy-m> Oh, I noticed that, lol
[20:16:47] <TurBoss> will fix
[20:17:13] <hazzy-m> excellent!
[20:18:46] <TurBoss> hmmm
[20:19:06] <TurBoss> to connect a signal from a widget to the table
[20:19:12] <TurBoss> jaut a slot?
[20:19:16] <TurBoss> *just
[20:22:06] <TurBoss> ah fount it
[20:22:06] <TurBoss> wrong signal
[20:38:48] * hazzy-m posted a file: actions.mkv (1171KB) < https://matrix.org >
[20:39:15] <hazzy-m> oops, wrong format
[20:39:45] <hazzy-m> and it recorded my music xD
[20:44:01] <TurBoss> great!
[20:45:02] <TurBoss> https://www.youtube.com
[20:45:39] <TurBoss> :P
[20:46:41] * hazzy-m uploaded an image: Screenshot_2018-09-15_20-45-48.png (30KB) < https://matrix.org >
[20:46:43] <hazzy-m> :(
[20:46:47] <TurBoss> boooo
[20:47:11] <TurBoss> nah just the radio from gta
[21:02:36] <Not> [02QtPyVCP] 07TurBoss created branch 03FileManager
[21:06:19] <TurBoss> I'm not sure how to implement usb umount
[21:06:37] <TurBoss> we are currently using pyudev and psutil
[21:06:56] <hazzy-m> Let me check how I did it in hazzy
[21:07:06] <TurBoss> oh great
[21:08:10] <hazzy-m> https://github.com
[21:08:43] <hazzy-m> I used Gio.VolumeMonitor
[21:08:47] <TurBoss> :|
[21:08:55] <hazzy-m> there should be something similar in Qt, no?
[21:08:59] <TurBoss> searching for
[21:13:42] <TurBoss> ```
[21:13:43] <TurBoss> os.system("umount " + path)
[21:13:44] <TurBoss> ```
[21:13:59] <hazzy-m> oh, noice!
[21:14:04] <hazzy-m> that is clean
[21:14:50] <hazzy-m> it is a little bit of a hack, but who cares it it works
[21:15:06] <TurBoss> seems fine to me..
[21:15:17] <TurBoss> okish
[21:15:33] <hazzy-m> I am fine with it too
[21:15:37] <TurBoss> great
[21:16:07] <hazzy-m> we are not doing cross platform stuff, so we can get away with things like that!
[21:16:21] <TurBoss> yes
[21:35:08] <Not> [02QtPyVCP] 07TurBoss pushed 031 commit to 03FileManager [+0/-0/±2] 13https://gitlab.com/Hazzy/qtpyvcp/compare/c7fcd66a49a0c7c536d36226df88021e2869028b...26a4e4828776091b187f275c72002a2eb6e4c9ef
[21:35:10] <Not> [02QtPyVCP] 07TurBoss 0326a4e48 - add refresh and eject buttons [WIP]
[21:43:04] <TurBoss> hmm it seems to umount but in filemanager still shows
[21:46:11] <Not> [02QtPyVCP] 07TurBoss pushed 031 commit to 03FileManager [+0/-0/±1] 13https://gitlab.com/Hazzy/qtpyvcp/compare/26a4e4828776091b187f275c72002a2eb6e4c9ef...0aa347dcef5912a61586825d90b1f91a7f1d7f9b
[21:46:12] <Not> [02QtPyVCP] 07TurBoss 030aa347d - try to unmount
[23:00:39] <hazzy-m> TurBoss: I think I remember that probably with hazzy, you may have to both eject and unmount
[23:02:03] <hazzy-m> problem*
[23:06:09] <TurBoss> will look tomorrow
[23:06:15] <TurBoss> gn8
[23:06:23] <hazzy-m> n8
[23:27:26] -!- Roguish has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]