go_away

Author Topic: Webbotlib documentation: potential typo (or my own bad coding :-P )  (Read 548 times)

0 Members and 1 Guest are viewing this topic.

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 364
  • Helpful? 10
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
Current project: tactile sensing systems for multifingered robot hands

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,136
  • Helpful? 109
Re: Webbotlib documentation: potential typo (or my own bad coding :-P )
« Reply #1 on: February 25, 2011, 08:14:11 PM »
its my typo, you're correct
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here