#emc-devel | Logs for 2009-09-10

[00:31:02] <dgarr> jepler: for consideration -- a patch that switches tabs if task_mode changed by actor other than axis gui
[00:31:06] <dgarr> http://filebin.ca/wwvzg
[00:34:14] <jepler> does halui's "send mdi" switch back to the prior mode when it completes? axis will eswitch over to mdi while the command (like quill up) is executing, and then back when it's done?
[00:34:29] <jepler> or does halui leave it in mdi and rely on axis automatically setting manual mode at the next jog
[00:34:40] <jepler> neither one seems great..
[00:39:07] <dgarr> i don't know answers for your questions. my usage is: sometimes when i pickup
[00:39:07] <dgarr> pendant, I want to switch from mdi to manual from the pendant without going back to keyboard
[00:41:27] <jepler> you can do mdi things from your pendant?
[00:41:42] <jepler> er, nevermind
[00:42:25] <dgarr> i was thinking any gui should show current emc.MODE_*
[00:45:30] <jepler> the answer is, yes, when you use a halui mdi command, axis switches to the mdi tab if it was on manual, then returns to manual when the mdi completes
[00:45:37] <jepler> (with your patch)
[00:48:11] <jepler> how are you switching to manual mode from your pendant?
[00:48:22] <jepler> .. halui
[00:48:23] <jepler> ?
[00:52:14] <jepler> you could modify axis-remote to switch axis to the manual tab and set manual mode all in one: http://emergent.unpy.net/files/sandbox/0001-provide-a-way-to-switch-axis-to-manual-mode.patch
[00:52:21] <dgarr> from a button: net b_manual input.0.btn-pinkie => halui.mode.manual
[00:53:10] <jepler> but then you'd have to write a hal compoent that runs a shell command on a rising input, or something like that
[00:57:27] <jepler> or maybe something else: a switch-to-manual hal pin on axis
[01:44:07] <cradek> heh, I had the mill draw its front panel with a sharpie on a piece of cardboard
[01:44:24] <cradek> for some reason we really got a kick out of watching it do that
[01:44:48] <cradek> also, the layout is wrong by 3/16 - saved me ~ $30 of aluminum
[01:46:08] <jepler> how do you calculate chip load for a sharpie?
[01:46:25] <dgarr> jepler: i'm not sure i understand all the issues, an attempt at adding pin: http://filebin.ca/tzqfa
[01:46:26] <cradek> good question - I didn't have any idea how fast it would draw and still make a nice line
[01:46:35] <cradek> I ran it at 200 and it seemed about right
[01:48:44] <cradek> at sugh a high accel, watching it do little circles is pretty impressive
[01:48:49] <cradek> such
[01:49:20] <jepler> dgarr: didn't test it yet, the nit I see is that you should read the pin only once -- store comp["set_manual_mode"] to a local then use it twice
[01:51:07] <jepler> also the pin name with hyphens, set-manual-mode, is more usual
[01:52:21] <jepler> maybe more like this: http://emergent.unpy.net/files/sandbox/0001-add-pin-to-set-axis-gui-to-manual-mode-so-pendant-ca.patch
[01:52:36] <jepler> errrrrr
[01:52:57] <jepler> updated with correct file
[01:53:22] <cradek> sorry, you guys were doing something real
[01:53:35] <jepler> I wouldn't mind hearing a third opinion, but I think I like this better than the first two possible solutions
[01:53:56] <jepler> in general I think a closer relationship between GUI and panel UI is better
[01:54:05] <jepler> and two separate apps (halui and gui) makes that harder
[01:55:31] <jepler> (urp, my revised patch says 'from dewey garrett' since I commit --amended his original .. that's not entirely right .. but maybe not entirely wrong)
[01:55:44] <dgarr> git commit --amend is useful: http://filebin.ca/hppmvc
[01:56:14] <dgarr> i added local var with this one
[01:57:39] <dgarr> oh -- now i see yours -- it's probably better -- i don't really know python
[01:57:45] <jepler> that gets the idea
[01:58:23] <jepler> the underlying reason for that change isn't specific to Python -- it's to cover the (unlikely) case that between the two userspace reads of the pin, it's not changed by another source (such as the base-thread running and reading physical inputs)
[01:59:48] <jepler> if you end up using that patch, and you like it, feel free to ping me about it again in a few days. I feel OK with the idea in general but I know I won't test it for myself.
[02:00:19] <jepler> (I mean, I lightly tested it by setting the pin with halcmd .. but beyond that it's not something I need for my machine)
[02:01:41] <jepler> cradek: are you using 2.3 or master on your lathe these days? I'm looking back at e-mails I sent about what might go in the next 2.3, and I see some CSS-related bugs that nobody ever reported testing in 2.3.
[02:01:51] <jepler> (or in master, for that matter
[02:01:51] <jepler> )
[02:02:18] <jepler> cradek: so if you're using master and haven't noticed any css bugs, that's good news. otherwise, you should be my guina pig and test these:
[02:02:21] <jepler> bcb8aaf fix tcss.ngc bug
[02:02:23] <jepler> c2bc8cf fix tcss2.ngc bug
[02:04:21] <dgarr> why do you use set-manual-mode for pin name instead of set_manual_mode -- is that a rule/convention or something?
[02:06:30] <jepler> dgarr: http://linuxcnc.org/docs/html/hal_general_ref.html#sec:GR-Naming-Conventions
[02:06:51] <dgarr> ok -- thanks
[02:07:23] <jepler> I hate meld
[02:07:27] <jepler> it's useless trash
[02:07:53] <dgarr> i will test the added pin and let you know
[02:08:38] <jepler> thank you
[02:11:51] <jepler> oh no wonder that won't apply -- I'd already cherry-picked it once
[02:12:02] <jepler> my opinion about meld is unchanged
[03:01:29] <cradek> jepler: it is using 2.3
[03:02:48] <cradek> uh 2.3.2 actually
[03:03:30] <cradek> oh I remember these atspeed problems
[03:03:46] <cradek> frankly I might not even have noticed them
[10:27:18] <BJT_Shop> BJT_Shop is now known as jthornton
[12:12:40] <micges_work> hello
[12:14:35] <alex_joni> hi
[12:21:36] <alex_joni> hey skunkworks
[12:21:40] <alex_joni> how's the puma?
[12:21:46] <alex_joni> :P
[12:25:21] <skunkworks> heh
[12:25:32] <skunkworks> nice. I don't need anymore pressure
[12:25:33] <skunkworks> ;)
[12:25:50] <alex_joni> ha
[12:25:59] <alex_joni> ok, lets switch topics then :D
[12:26:02] <alex_joni> how's the garage?
[12:28:47] <skunkworks> good - all sides are sided. Down to electrical
[12:29:36] <alex_joni> ah, then you have a bit more work
[12:29:41] <skunkworks> how is the apartment?
[12:29:47] <alex_joni> pretty much finished
[12:29:59] <skunkworks> nice!
[12:39:23] <skunkworks> electrical will be pretty easy. (I like doing that kind of stuff)
[13:14:40] <cradek> thought it was awful quiet
[13:15:02] <skunkworks> heh
[18:50:19] <skunkworks> mozmck: you're candcnc?
[18:55:52] <mozmck> I work for candcnc
[18:56:39] <mozmck> why?
[18:58:59] <skunkworks> I get a kick out of reading torchhead's posts. :) http://www.cnczone.com/forums/showpost.php?p=663655&postcount=7
[18:59:10] <skunkworks> Does he talk like that in person?
[19:02:56] <mozmck> not all the time. :)
[19:04:37] <skunkworks> Is he getting turned on by emc2 yet?
[19:08:17] <mozmck> yes, I am working on some components (slowly) to get all our stuff working in emc2
[19:08:37] <mozmck> too much to do!