code for the Driving by Visual Angle model