#linuxcnc-devel | Logs for 2015-02-06

Back
[10:57:30] <seb_kuzminsky> wow, task doesn't care if Interp::init() fails
[10:57:36] <seb_kuzminsky> there's a comment there that says:
[10:57:43] <seb_kuzminsky> if (retval > INTERP_MIN_ERROR) { // I'd think this should be fatal.
[10:57:51] <seb_kuzminsky> but then it just prints an error and continues
[10:58:16] <mozmck> heh, maybe it's not ever expected to fail!
[10:58:45] <seb_kuzminsky> it goes hand in hand with interp's init() not really handling error conditions at all, i guess....
[10:59:01] * seb_kuzminsky shrugs and writes new code in the bad old pattern
[11:05:43] <cradek> what are you working on?
[11:37:22] <seb_kuzminsky> i'm adapting arceye's "arc radius tolerance in ini file" patch to work with rob ellenberg's new spiral code
[11:38:02] <skunksleep> Cool - 2.7 here we come!
[11:38:25] <pcw_home> Great!
[11:38:29] <seb_kuzminsky> well, at least the next pre-release :-)
[11:38:34] <seb_kuzminsky> hopefully this weekend
[11:39:11] <skunksleep> Awesome
[15:28:17] <skunksleep> Zlog
[15:28:55] <skunksleep> zlog
[17:08:38] <mozmck> I don't understand the description for WRAPPED_ROTARY in this section: http://www.linuxcnc.org/docs/devel/html/config/ini_config.html#sub:AXIS-section
[17:09:13] <mozmck> It seems incomplete at least.
[17:27:57] <andypugh> It means that the axis will only ever move at most 359.999 degrees
[17:28:43] <andypugh> If it is at 0 then A359.999 will move it 359.999 degrees. Or -359.999 will move it 0.001 degrees
[17:29:00] <andypugh> The A-value is a position to move to, not a move to make.
[17:29:12] <andypugh> (As I understand it)
[17:29:43] <mozmck> So you can only give it an absolute position?
[17:29:52] <andypugh> I believe so.
[17:30:05] <andypugh> But the sign tells it the direction to move to get there
[17:30:19] <mozmck> And what does WRAPPED mean then?
[17:30:29] <andypugh> I never tested it, it as I know that isn’t what I wanted
[17:30:43] <andypugh> It means that it wraos through zero
[17:30:48] <andypugh> (wraps)
[17:31:34] <mozmck> hmm, ok
[17:31:50] <mozmck> How does it work if that is not set then?
[17:33:20] <andypugh> Well, taking the first example of the A axis at zero, and a command to move to -359.999, the motor will move backwatds to -1, -2, -3… -359.999 and end up at the +0.001 position after very nearly a full turn.
[17:33:57] <andypugh> Sorry, I mean slightly more than a full turn
[17:34:18] <mozmck> Ok, I thought that's what you said it would do if WRAPPED was true?
[17:35:21] <andypugh> Wrapped always moves less than a full turn, I think. I may be confusing myself now.
[17:35:37] <mozmck> sounds like the documentation is very clearly unclear :)
[17:36:05] <andypugh> I think it is one of those things where the guy who asked for it got it, but noboy else has ever wanted it :-)
[17:36:45] <mozmck> ok, not that important for me to understand now anyhow :)
[17:38:03] <mozmck> I'm looking at making a livecd, probably based off of either Xubuntu 14.04 or Linux Mint Mate 17.1 - any thoughts on which would be better?
[17:38:36] <andypugh> Lubuntu?
[17:39:03] <andypugh> No, no real opinions. I use ISX by choice :-)
[17:39:06] <mozmck> I've looked at it as well... It is pretty nice.
[17:39:10] <andypugh> (OSX that is)
[17:39:18] <mozmck> to run linuxcnc?
[17:39:40] <andypugh> Yes, but not on OSX.
[17:40:02] <andypugh> Though I believe it has been done
[17:40:05] <mozmck> XFCE file manager (Thunar) in xubuntu finally has tabbed windows, which I use a lot.
[17:40:16] <andypugh> No point, though, there is no suitable hardware to drive.
[17:41:41] <mozmck> The file manager in LXDE is actually pretty good, but I think Thunar may actually be as good now in the latest. The searchable menu in XFCE is nice as well, and Mousepad does syntax highlighting
[17:42:57] <andypugh> I use anything, Windows, Mac. I even quite like Unity.
[17:43:23] <mozmck> hmm, not me.
[17:43:36] <mozmck> And it's no good for older hardware either.
[17:43:52] <mozmck> Unity that is
[17:44:03] <andypugh> Well, I can’t say I prefer it, but I think I understand their thinking behind it.
[17:50:21] <PCW> I dont mind unity if you turn on the window decoration menus
[17:51:03] <PCW> the menus all in one spot thing is for-the-birds
[17:52:34] <mozmck> or OSX users... ;)
[17:53:28] * skunkworks is using unity...
[17:54:22] <mozmck> How well does it work if you are using 6 workspaces with 10 to 20 programs on each?
[17:54:48] <skunkworks> I don't know..
[17:55:38] <mozmck> It's been a while since I looked at it, and I hear it has improved some.
[19:18:03] <cradek> hmm, I agree that's quite incomplete
[19:18:22] <cradek> you can move more than one full turn with wrapped, but you have to use g91 mode to do it
[19:19:08] <cradek> g91 g0 a+361 will go a little more than a turn in the positive direction; if you started at a=3 you'll end up at a=4
[19:20:06] <cradek> I bet this doesn't get much use :-/
[20:58:31] <kwallace> Let's say I have AXIS running and I open a python program that imports linuxcnc and I poll status. This seems to just work, but I'd like to know how my app knows where to look for the linuxcnc status link.
[21:00:53] <kwallace> When I do the same with the UI I'm working on, the app doesn't work. I've played with PYTHONPATH to try to insure the import looks for the proper linuxcnc module, but I'm not sure this is the problem.
[21:11:43] <kwallace> The import doesn't produce an error, but printing the position data gives me 0.0 instead of the position values showing in the UI.
[22:49:48] <seb_kuzminsky> kwallace: after you import, you need to create a linuxcnc.stat() object and poll() it, then it should have valid values