NQC (Not Quite C) is a programming language for several Lego MindStorms products, including the RCX, CyberMaster, and Scout.
A collecion of programs using the IR as an obstacle-detection RADAR
A robot that randomly turns when an obstacle is detected
A gear-shifting robot that downshifts to slow down when approaching potential obstacles.