This document defines functions to control a servo motor and DC motors to move a robot forward, backward, left, and right. It uses an ultrasonic sensor to scan the area and detect obstacles, and directs the robot to turn right, back up and turn right, or turn left depending on where the obstacle is detected to avoid collisions. The robot moves forward and calls the scan function in a loop to continually check for obstacles as it moves.