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

[13:55:13] <CIA-8> EMC: 03bigjohnt 07v2_3_branch * r03045fce5e39 10/docs/src/gcode/coordinates.lyx: Update G92 offsets section and some general clean up.
[13:55:23] <CIA-8> EMC: 03bigjohnt 07v2_3_branch * ra5c23a8f8b96 10/docs/src/gcode/main.lyx: Add G10 L2 example
[17:01:27] <mozmck> in the modbus component (gs2_vfd.c) I notice that some hal pins are declared as pointers and some not. Why?
[17:02:31] <mozmck> It looks like the ones that are not pointers are RW and the pointers are IN or OUT. is that how it needs to be?
[17:20:52] <jepler> pins are pointers and parameters are not.
[17:21:49] <jthornton_> jthornton_ is now known as jthornton
[18:03:39] <mozmck> so are the HAL_RW items parameters?
[18:15:34] <cradek> mozmck: in hal.h I see that RO/RW are for params, IN/OUT/IO are for pins
[18:15:49] <jepler> look at the name of the function that creates the item
[18:15:54] <jepler> a form of hal_pin_new vs hal_param_new
[18:16:09] <jepler> and yes the values for "direction" are also different
[18:36:06] <mozmck> aha! thanks! I missed that it was hal_param for the ones created with RW.
[18:52:40] <alex_joni> mozmck: ideally everything should be pins
[18:52:53] <alex_joni> we started changing some params to pins, but it's a pita to get everything right
[18:53:07] <alex_joni> * alex_joni borked a couple things doing this, so I learned my lesson ;)
[18:55:03] <mozmck> so what is the difference between them practically speaking?
[19:24:46] <mozmck> Is there a way to get axis to display a message from a hal component?
[19:27:51] <jthornton> be nice if it could
[19:29:09] <mozmck> yeah, our THC sends an error code that I'd like to display as a human-readable message.
[19:31:10] <mozmck> how is your thc component coming btw?
[19:31:37] <jthornton> been side tracked working on getting radio line of sight internet
[19:32:07] <jthornton> got that all hooked up now I just need to bury the conduits from the house to the garage for everything to go in
[19:32:48] <jthornton> I just finished a 1' wide 18" deep ditch from the house to the garage... some was tough digging
[19:32:57] <jthornton> about 120' long
[19:33:36] <mozmck> ah, I need to finish a ditch about like that from house to shop about 180' long - for water and network cable and some other cable
[19:34:10] <jthornton> yea, I'm tossing in datacom, water, power everything but the cat
[19:35:09] <jthornton> is your error code an ascii string?
[19:35:11] <mozmck> I dug most of the ditch a couple years ago by hand, but didn't have the materials or time to finish so it's halfway filled up now.
[19:35:53] <mozmck> coming from the thc it is a byte where each bit means a different error.
[19:35:59] <alex_joni> mozmck: if your component uses rtapi_print
[19:36:02] <alex_joni> then it'll get to AXIS
[19:36:04] <jthornton> you would not dig one here by hand all rock with red clay to hold it together
[19:36:05] <alex_joni> and get displayed
[19:36:26] <mozmck> then I parse it in the component and make it a string.
[19:36:52] <mozmck> alex_joni: this is a userspace component - can I use that from this?
[19:37:55] <jthornton> http://www.linuxcnc.org/docview/html//man/man3/rtapi_print.3rtapi.html
[19:37:56] <mozmck> black clay here pretty bad. you can't dig if it's wet at all, and gets real hard when dry. I use a grubbing hoe and sharp-shooter.
[19:38:39] <mozmck> thanks! says it can be called from user code...
[19:38:48] <jthornton> what is a sharp-shooter?
[19:39:30] <mozmck> hmm, long, narrow shovel with a short handle.
[19:39:50] <jthornton> ok, know what that looks like
[19:39:50] <alex_joni> mozmck: yeah, from there too I think
[19:40:47] <mozmck> grubbing hoe is like a pickaxe but with a heavy 3" wide end on it.
[19:42:06] <alex_joni> mozmck: the difference between params and pins is only philosophical :)
[19:42:14] <alex_joni> and besides you can't link things to params
[19:42:21] <jthornton> think they call that one a maddax around here
[19:42:25] <mozmck> I see. :-)
[19:42:35] <alex_joni> otoh a pin can behave exactly like a param (you use setp to set a value for it)
[19:43:10] <mozmck> jthornton: here's some sharp-shooters. The top middle is what I'm used to http://www.hisco-okc.com/category.asp?idCategoryID=20
[19:45:19] <mozmck> the middle picture on this page is what we call a grubbing hoe, looks like they call it a mattock: http://www.easydigging.com/Garden_Tool/pick_mattock.html
[19:46:27] <jthornton> take a look at weighted_sum.c for some rtapi_msg examples
[19:46:43] <mozmck> alex_joni: I'll just use pins then.
[19:46:57] <mozmck> ok, thanks jthornton
[19:47:05] <jthornton> np
[19:47:15] <jthornton> * jthornton likes grep