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 hypot, then send
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 ;;
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 PROTECTED]:~$
...