Society of Robots - Robot Forum

Software => Software => Topic started by: mstacho on February 25, 2011, 02:36:52 PM

Title: Webbotlib documentation: potential typo (or my own bad coding :-P )
Post by: mstacho on February 25, 2011, 02:36:52 PM
On page 250, the example to make the generic quadrature encoder, the function in the example is:

QUADRATURE quad1 = MAKE_QUADRATURE(B4, B5, FALSE, 32, FALSE);

(in my case I'm using K0, K1, and 1368 pulses per revolution).  This won't compile (it says "invalid initializer").  But:

QUADRATURE quad1 = MAKE_GENERIC_QUADRATURE(K0,K1,false,1368,false);

does.  Is there a function called MAKE_QUADRATURE and I'm just using it wrong, or is it a typo in the manual?

MIKE
Title: Re: Webbotlib documentation: potential typo (or my own bad coding :-P )
Post by: Webbot on February 25, 2011, 08:14:11 PM
its my typo, you're correct