Here's a short, probably incomplete list of features added in 'comp'
that are not in 2.1.x:
* 'modparam' declaration
* 'license' declaration
* 'variable' declaration
* 'personality' declaration
* 'see_also' declaration
* 'description' declaration
* arrays of pins and parameters
* dots in h
Thank you, Jeff. It seems to be working now.
The difference seems to be:
...
function _ nofp;
license "GPL"; <--
;;
...
doesn't work,
...
;;
MODULE_LICENSE("GPL"); <--
FUNCTION(_) {
...
does work.
I used the first file
( http://cvs.linuxcnc.org/lxr/source/src/hal/components/xor2.comp )
bec
On Sun, Aug 26, 2007 at 02:11:15PM -0700, Kirk Wallace wrote:
> Now I get:
>
> [EMAIL PROTECTED]:~$ comp xor2.comp
> xor2.comp:6:1: Trying to find one of "$", "component", "pin", "param",
> "function ", "option"
> > component xor2 "Two-input XOR (exclusive OR) gate";
> > ^
> while parsing File()
Ops. My mistake. 007 is a line number I failed to delete.
Now I get:
...
[EMAIL PROTECTED]:~$ comp xor2.comp
xor2.comp:6:1: Trying to find one of "$", "component", "pin", "param",
"function ", "option"
> component xor2 "Two-input XOR (exclusive OR) gate";
> ^
while parsing File():
[EMAIL PROTEC
> 007 ;;
The ";;" must be on a line of its own with no extra characters including
white space or control characters -- I'm not sure how agent 007 got in
there, but he's the one causing the problem.
Jeff
-
This SF.net email i
I did a fresh install of the Ubuntu 6.06 Live CD, did an update, then
installed emc2-dev. I copied xor2.comp to my home directory:
xor2.comp
component xor2 "Two-input XOR (exclusive OR) gate";
pin in bit in0;
pin in bit in1;
pin out bit out;
function _ nofp;
license "GPL";
007 ;;
FUNCTIO
>>> option 3) differentiate the output from above with ddt and feed it to
>>> the needle "spindle" as a velocity command. might be slightly less
>>> accurate than 2 but you won't need to do silly hacks to prevent
>>> counter overflow.
>
> 3A) differentiate the X and Y positions _before_ the hypo