Code for new official Arduino Robot using a Sharp IR Rangefinder

Hello!

I just received my robot from Maker SHED and modified the "Runaway Robot" program to use a short range Sharp IR Rangefinder.
(I also control detection distance using the pot. on the top control board and added a reversing action in an attempt at preventing the robot from getting stuck.)
I included the code as a file because it isn't really short. I hope I have commented my changes enough to explain them.

(The robot arrived in excellent shape and was easy to assemble. It certainly isn't inexpensive, but I am pleased with what I got.)
(I would like to be able to put more code up here over time as I figure out more that I can do with my robot.)

Arduino_Robot_Runaway.ino (2.9 KB)