ABSTRACT
The following sections implement a number of example Rug War rior programs. We invite you to build on these examples to create programs for you own robot. All programs except the velocity con trol program rely on standard library functions. (The library is distributed with IC . IC plus the example code in this appendix is included with the new Rug Warrior P ro™ robot kit.)
Important library functions include:
analog (chan) Perform an A/D conversion on analog channel chan. Wait until conversion has completed before returning.