Follow the Line

A smooth-driving factory robot: two sensors and four rules, checked ten times a second, keep it on a bending line. Find out why it wiggles.