Hi everyone, I am building a hexapod robot using the PIC16F877 Micro. It has 3 distance sensors at the front, 3 at the back, and one on each side. It also have 4 light sensors around its sides. I have some trouble writing the control function to navigate the robot around the house since there are many different combinations of sensor state. Sure, I can write some "if/else statements" but it looks like I will have 4096 (2^12) if/else statements! There must be an efficient and easier way! I heard something about fuzzy logic but not sure if it fits my application. Any help would be appreciated. Regards, Thomas _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu