Computer algorithms were developed for generating the guidance parameters necessary to steer an agricultural tractor. A variety of field operations were considered in order that the guidance program be suited for general applications including travel in curved rows and following a single edge. Testing of the guidance algorithm was performed in the laboratory using simulated and videotaped images of rowcrops and tilled soil. From the images, yaw angle change of the tractor, direction value and offset error were computed. Prediction of the direction value and offset error compared well to measured values. Accuracy of the direction value was within +/- 0.5 degrees while the offset error was within +/- 0.05 meters. Good performance was observed for straight and curved rows as well as following a single edge.