#linuxcnc-devel | Logs for 2014-10-13

[13:36:31] <pcw_home> Hmm are there legitimate uses of one node nets in hal?
[13:36:33] <pcw_home> if not it might be nice to warn about them
[13:38:00] <archivist> to link or connect to later in a user prog
[13:46:54] <pcw_home> Ahh, Ive noticed a common newbie mistake to have unconnected nets
[13:50:49] <archivist> a warning could be ok though with perhaps an option to hide
[14:25:08] <jepler> outline for a short presentation about writing components with halcompile for the houston gathering: http://emergent.unpythonic.net/files/sandbox/comptalk.pdf
[14:26:39] <cradek> Generated code: [there be tiny dragons here]
[14:26:52] <jepler> that slide's not intended for actual reading
[14:28:50] <cradek> I know exactly what a ddt is, but still that example is not clear to me
[14:29:14] <cradek> I bet a lot of folks in your audience may not know exactly what a ddt is
[14:30:04] <jepler> I wonder if there's another simple component that has state that would be more understandable
[14:30:15] <cradek> yeah I'm trying to come up with one too
[14:30:52] <cradek> chargepump/toggle?
[14:31:02] <cradek> pin <= !pin
[14:31:24] <cradek> uh
[14:31:26] <cradek> pin = !pin
[14:31:28] <jepler> that most naturally uses the state held in the pin
[14:31:41] <cradek> y'know
[14:31:46] <cradek> oh, I see what you mean
[14:31:51] <cradek> you want some state that's not in a pin
[14:31:58] <jepler> right, to illustrate 'variable'
[14:33:46] <cradek> misspelled: temerature
[14:34:57] <cradek> is "param rw float p#[4]" spelled right?
[14:35:10] <jepler> I think so, I copied it from the component I wrote
[14:35:14] <jepler> it becomes p0, p1, p2, p3
[14:36:52] <cradek> your cubic equation has wrong point indexes
[14:37:26] <jepler> fixed
[14:39:56] <jepler> component push2toggle "Convert a (debounced) pushbutton to a toggle";
[14:40:11] <cradek> in cubic, doesn't the body have to be inside FUNCTION(_){...} ?
[14:40:29] <jepler> http://linuxcnc.org/docs/html/hal/comp.html#_components_with_one_function
[14:40:33] <jepler> If a component has only one function and the string "FUNCTION" does not appear anywhere after ;;, then the portion after ;; is all taken to be the body of the component’s single function. See the Simple Comp for and example of this.
[14:40:52] <jepler> anyway, push2toggle would use a variable and not need an explanation of calculus
[14:40:53] <cradek> ok, then the "simplest" example isn't
[14:41:12] <cradek> push2toggle is a good idea
[14:41:57] <cradek> (those asciidoc->html docs are pretty)
[14:42:33] <cradek> looks great - I hope others make presentations too
[14:43:37] <jepler> thanks
[14:43:49] <jepler> I've never done a presentation, so I feel a bit bad subjecting people to me
[14:44:08] <jepler> anything come to mind that I should mention but don't?
[14:44:46] <cradek> no, it looks like a fine introduction
[14:45:21] <jepler> .. pdf updated
[14:49:09] <cradek> in the bezier example, you assume the knowledge that t=[0..1]
[14:49:31] <cradek> conveniently matching up with siggen...
[14:50:04] <jepler> actually siggen is [-1..1]
[14:50:34] <jepler> I guess I should put those setps in the hal I show
[14:50:59] <jepler> I found it in the middle of my coding when my function didn't "start" at zero
[16:20:54] <jepler> cradek: I appreciate the feedback
[16:21:06] <jepler> if anybody else has feedback about http://emergent.unpythonic.net/files/sandbox/comptalk.pdf drop it here or in a /msg
[16:53:11] <seb_kuzminsky> jepler: page 7 copy/paste error, title is "Parameters", but the first line says "pin direction type name;"
[16:54:23] <jepler> Exported Functions:
[16:54:23] <jepler> Owner CodeAddr Arg FP Users Name
[16:54:23] <jepler> 00009 7fe9f2af2cb0 7fe9f4b350d8 YES 0 iggen.0.update
[16:54:25] <jepler> well that's weird
[16:54:27] <jepler> "iggen"
[16:54:38] <jepler> seb_kuzminsky: thanks, will fix
[17:39:16] <jepler> my weirdness went away after resetting back to master
[17:39:24] <jepler> but I don't see how my local changes could have been related
[20:33:30] <KGB-linuxcnc> 03Dewey Garrett 05dgarr/ini_extend_lines d0ac73f 06linuxcnc 10docs/src/config/ini_config.txt 10src/libnml/inifile/inifile.cc 10src/libnml/inifile/inifile.hh inifile.cc: support extending lines with backslash * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=d0ac73f